1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 20:53:22 +02:00

n810: Add the CAL BME PMM extractor script to preinit.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25381 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2011-02-06 12:45:21 +00:00
parent e5c57c56df
commit 36f5750488

View File

@ -0,0 +1,14 @@
#!/bin/sh
do_extract_cal_bme_pmm() {
[ -e /lib/firmware/n810-cal-bme-pmm.fw ] && return 0
[ -x /usr/bin/calvaria ] || { echo "CAL-BME extract: calvaria not found"; return 1; }
/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"
return 1
}
}
boot_hook_add preinit_mount_root do_extract_cal_bme_pmm