bootcount 360 B

12345678910111213141516171819
  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. boot() {
  4. case $(board_name) in
  5. alfa-network,quad-e4g)
  6. [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
  7. echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
  8. ;;
  9. linksys,ea7300-v1|\
  10. linksys,ea7500-v2)
  11. mtd resetbc s_env || true
  12. ;;
  13. samknows,whitebox-v8)
  14. fw_setenv bootcount 0
  15. ;;
  16. esac
  17. }