linksys_recovery 399 B

1234567891011121314151617181920
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2015 OpenWrt.org
  3. START=97
  4. boot() {
  5. . /lib/functions.sh
  6. . /lib/ipq806x.sh
  7. case $(ipq806x_board_name) in
  8. ea8500)
  9. # make sure auto_recovery in uboot is always on
  10. AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
  11. if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
  12. fw_setenv auto_recovery yes
  13. fi
  14. # reset the boot counter
  15. mtd resetbc s_env
  16. ;;
  17. esac
  18. }