mvebu: make flashing more safe
[15.05/openwrt.git] / target / linux / mvebu / base-files / etc / init.d / u-boot_env
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 (executable)
index 0000000..82f36cb
--- /dev/null
@@ -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
+}