summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 7a02e3121..061673035 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