bootcount 305 B

1234567891011121314151617181920
  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. fw_setenv bootcount 0
  11. ;;
  12. linksys,ea7500-v1 |\
  13. linksys,ea8500)
  14. mtd resetbc s_env || true
  15. ;;
  16. esac
  17. }