bootcount 390 B

123456789101112131415161718192021222324
  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. . "$IPKG_INSTROOT/lib/upgrade/asrock.sh"
  4. boot() {
  5. case $(board_name) in
  6. asrock,g10)
  7. asrock_bootconfig_mangle "bootcheck" && reboot
  8. ;;
  9. edgecore,ecw5410|\
  10. ignitenet,ss-w2-ac2600)
  11. fw_setenv bootcount 0
  12. ;;
  13. extreme,ap3935)
  14. fw_setenv WATCHDOG_COUNT 0x00000000
  15. ;;
  16. linksys,ea7500-v1|\
  17. linksys,ea8500)
  18. mtd resetbc s_env || true
  19. ;;
  20. esac
  21. }