rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.git] / target / linux / mvebu / base-files / etc / init.d / linksys_recovery
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2015 OpenWrt.org
3
4 START=97
5 boot() {
6 . /lib/functions.sh
7 . /lib/mvebu.sh
8
9 case $(mvebu_board_name) in
10 armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby|armada-xp-linksys-mamba)
11 # make sure auto_recovery in uboot is always on
12 AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
13 if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
14 fw_setenv auto_recovery yes
15 fi
16 # reset the boot counter
17 mtd resetbc s_env
18 ;;
19 esac
20 }