linksys_recovery 519 B

1234567891011121314151617181920
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2015-2016 OpenWrt.org
  3. START=97
  4. boot() {
  5. . /lib/functions.sh
  6. . /lib/mvebu.sh
  7. case $(mvebu_board_name) in
  8. armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba)
  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. }