summaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/lib
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-05-27 19:03:22 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-05-27 19:03:22 +0000
commit9fb062cf9332658e2c2b1e0decf6f56088d42024 (patch)
tree636d4d1fe19577e20af02a09efd21117921d0d40 /target/linux/mvebu/base-files/lib
parent63cac50d24c8c32ef6e78de168c0eaba29ac7231 (diff)
downloadopenwrt-9fb062cf9332658e2c2b1e0decf6f56088d42024.tar.gz
openwrt-9fb062cf9332658e2c2b1e0decf6f56088d42024.tar.bz2
openwrt-9fb062cf9332658e2c2b1e0decf6f56088d42024.zip
mvebu: make flashing more safe
Turn on the auto recovery feature when flashing and turn it off on successful bootup. Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45792
Diffstat (limited to 'target/linux/mvebu/base-files/lib')
-rw-r--r--target/linux/mvebu/base-files/lib/upgrade/linksys.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/mvebu/base-files/lib/upgrade/linksys.sh b/target/linux/mvebu/base-files/lib/upgrade/linksys.sh
index f37831ba75..fc403332bd 100644
--- a/target/linux/mvebu/base-files/lib/upgrade/linksys.sh
+++ b/target/linux/mvebu/base-files/lib/upgrade/linksys.sh
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2014 OpenWrt.org
+# Copyright (C) 2014-2015 OpenWrt.org
#
linksys_get_target_firmware() {
@@ -19,6 +19,9 @@ linksys_get_target_firmware() {
fw_setenv bootcmd "run nandboot"
fi
+ # re-enable recovery so we get back if the new firmware is broken
+ fw_setenv auto_recovery yes
+
echo "$target_firmware"
}