You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
397 B
15 lines
397 B
#!/bin/sh
|
|
|
|
n810_cal_bme_pmm_extract() {
|
|
[ -x /usr/bin/calvaria ] && {
|
|
/usr/bin/calvaria -p -n bme -i last /dev/mtdblock1 >/lib/firmware/n810-cal-bme-pmm.fw ||\
|
|
echo "CAL-BME extract: Failed to extract blob"
|
|
}
|
|
}
|
|
|
|
[ "$FIRMWARE" = "n810-cal-bme-pmm.fw" ] && {
|
|
[ -z "$(grep -e 'Nokia N810' /proc/cpuinfo)" ] || {
|
|
[ -e /lib/firmware/n810-cal-bme-pmm.fw ] ||\
|
|
n810_cal_bme_pmm_extract
|
|
}
|
|
}
|
|
|