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 | 9fb062cf9332658e2c2b1e0decf6f56088d42024 (patch) | |
tree | 636d4d1fe19577e20af02a09efd21117921d0d40 /target/linux/mvebu/base-files/etc | |
parent | 63cac50d24c8c32ef6e78de168c0eaba29ac7231 (diff) | |
download | upstream-9fb062cf9332658e2c2b1e0decf6f56088d42024.tar.gz upstream-9fb062cf9332658e2c2b1e0decf6f56088d42024.tar.bz2 upstream-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/etc')
-rwxr-xr-x | target/linux/mvebu/base-files/etc/init.d/u-boot_env | 14 |
1 files changed, 14 insertions, 0 deletions
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 new file mode 100755 index 0000000000..82f36cb71f --- /dev/null +++ b/target/linux/mvebu/base-files/etc/init.d/u-boot_env @@ -0,0 +1,14 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2015 OpenWrt.org + +START=97 +boot() { +. /lib/functions.sh +. /lib/mvebu.sh + +case $(mvebu_board_name) in + armada-385-linksys-caiman|armada-385-linksys-cobra|armada-xp-linksys-mamba) + fw_setenv auto_recovery off + ;; +esac +} |