bootcount 381 B

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