2011-02-06 14:42:42 +00:00
|
|
|
#!/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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-09 11:00:36 +00:00
|
|
|
. /lib/functions.sh
|
|
|
|
|
2011-02-06 14:42:42 +00:00
|
|
|
[ "$FIRMWARE" = "n810-cal-bme-pmm.fw" ] && {
|
2017-07-09 11:00:36 +00:00
|
|
|
[ "$(board_name)" != "nokia,n810" ] || {
|
2011-02-06 14:42:42 +00:00
|
|
|
[ -e /lib/firmware/n810-cal-bme-pmm.fw ] ||\
|
|
|
|
n810_cal_bme_pmm_extract
|
|
|
|
}
|
|
|
|
}
|