bootcount 336 B

1234567891011121314151617
  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-3a|\
  11. xiaomi,miwifi-nano)
  12. fw_setenv flag_boot_success 1
  13. ;;
  14. esac
  15. }