bootcount 297 B

12345678910111213141516171819
  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. boot() {
  4. case $(board_name) in
  5. dlink,eagle-pro-ai-m32-a1|\
  6. dlink,eagle-pro-ai-r32-a1)
  7. if grep -q boot_part=Kernel1 /proc/cmdline; then
  8. fw_setenv boot_part 1
  9. else
  10. fw_setenv boot_part 2
  11. fi
  12. ;;
  13. linksys,e8450)
  14. mtd erase senv || true
  15. ;;
  16. esac
  17. }