diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-05-27 19:03:22 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-05-27 19:03:22 +0000 |
commit | 952b6f2b0538f528b6db3202da83fb46cb982594 (patch) | |
tree | cf1e1af5dc94146a9a8f61ed8be5cc2e3b2d36d9 /target/linux/mvebu/base-files/lib | |
parent | c31530e98dfd1afd94fbe7c14de4fe1a9ea80a1d (diff) | |
download | master-187ad058-952b6f2b0538f528b6db3202da83fb46cb982594.tar.gz master-187ad058-952b6f2b0538f528b6db3202da83fb46cb982594.tar.bz2 master-187ad058-952b6f2b0538f528b6db3202da83fb46cb982594.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45792 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/base-files/lib')
-rw-r--r-- | target/linux/mvebu/base-files/lib/upgrade/linksys.sh | 5 |
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" } |