10-bme-pmm-image 397 B

123456789101112131415
  1. #!/bin/sh
  2. n810_cal_bme_pmm_extract() {
  3. [ -x /usr/bin/calvaria ] && {
  4. /usr/bin/calvaria -p -n bme -i last /dev/mtdblock1 >/lib/firmware/n810-cal-bme-pmm.fw ||\
  5. echo "CAL-BME extract: Failed to extract blob"
  6. }
  7. }
  8. [ "$FIRMWARE" = "n810-cal-bme-pmm.fw" ] && {
  9. [ -z "$(grep -e 'Nokia N810' /proc/cpuinfo)" ] || {
  10. [ -e /lib/firmware/n810-cal-bme-pmm.fw ] ||\
  11. n810_cal_bme_pmm_extract
  12. }
  13. }