2
0
forked from Ivasoft/openwrt

n810: Add firmware generator hotplug scripts

SVN-Revision: 25384
This commit is contained in:
Michael Büsch
2011-02-06 14:42:42 +00:00
parent 99c66237f0
commit 9104390789
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/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
}
}