1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-02 06:19:43 +02:00
openwrt-xburst/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image
mb 6b20955cca n810: Add firmware generator hotplug scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25384 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-06 14:42:42 +00:00

16 lines
397 B
Bash

#!/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
}
}