This will have the autorecovery mechanism enabled permanently.
This patch depends on patch
  "Fix for mvebu (WRT1900AC/WRT1200AC/etc) boot counter"

Signed-off-by: Rob Mosher <[email protected]>
---
 target/linux/mvebu/base-files/etc/init.d/u-boot_env | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/target/linux/mvebu/base-files/etc/init.d/u-boot_env 
b/target/linux/mvebu/base-files/etc/init.d/u-boot_env
index bf038b2..d67c0a4 100755
--- a/target/linux/mvebu/base-files/etc/init.d/u-boot_env
+++ b/target/linux/mvebu/base-files/etc/init.d/u-boot_env
@@ -8,8 +8,14 @@ boot() {
 
 case $(mvebu_board_name) in
        
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-xp-linksys-mamba)
-               fw_setenv auto_recovery off
+               # make sure auto_recovery in uboot is turned on
+               AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
+               if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
+                       fw_setenv auto_recovery yes
+               fi
                mtd resetbc s_env
+               sync
+
                ;;
 esac
 }
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to