aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mvebu/base-files/etc/init.d')
-rwxr-xr-xtarget/linux/mvebu/base-files/etc/init.d/u-boot_env14
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
+}