From fbf4448d40762aaaac81fffca51286406343b4b9 Mon Sep 17 00:00:00 2001 From: wbx Date: Wed, 6 Jul 2005 10:36:33 +0000 Subject: [PATCH] set boot_wait to on in the earliest possible moment. this makes webupgrade safer and also nvram resets. idea and patch from Georg Lucas git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1358 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/default/target_skeleton/etc/preinit | 4 ++++ 1 file changed, 4 insertions(+) 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