summaryrefslogtreecommitdiff
path: root/openwrt/target
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/target')
-rwxr-xr-xopenwrt/target/default/target_skeleton/etc/preinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/preinit b/openwrt/target/default/target_skeleton/etc/preinit
index 7a02e31215..061673035c 100755
--- a/openwrt/target/default/target_skeleton/etc/preinit
+++ b/openwrt/target/default/target_skeleton/etc/preinit
@@ -1,4 +1,8 @@
#!/bin/sh
+[ "$(/usr/sbin/nvram get boot_wait)" != "on" ] && {
+ /usr/sbin/nvram set boot_wait=on
+ /usr/sbin/nvram commit
+}
mount none /proc -t proc
insmod diag
echo 0x01 > /proc/sys/diag