bootcount 316 B

12345678910111213141516
  1. #!/bin/sh /etc/rc.common
  2. START=99
  3. boot() {
  4. case $(board_name) in
  5. alfa-network,awusfree1)
  6. [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
  7. echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
  8. ;;
  9. xiaomi,mi-router-4c|\
  10. xiaomi,miwifi-nano)
  11. fw_setenv flag_boot_success 1
  12. ;;
  13. esac
  14. }