From: Waldemar Brodkorb Date: Wed, 6 Jul 2005 10:36:33 +0000 (+0000) Subject: set boot_wait to on in the earliest possible moment. this makes webupgrade safer... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=612153020034ec212cbba8b8a28063ddf1a8226e;p=openwrt%2Fstaging%2Fzorun.git set boot_wait to on in the earliest possible moment. this makes webupgrade safer and also nvram resets. idea and patch from Georg Lucas SVN-Revision: 1358 --- 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