From: wbx 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: https://git.rohieb.name/openwrt.git/commitdiff_plain/c053c3ed7778d6088c2d3d32ade44a509111793d?ds=sidebyside 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/openwrt@1358 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/default/target_skeleton/etc/preinit b/target/default/target_skeleton/etc/preinit index 7a02e3121..061673035 100755 --- a/target/default/target_skeleton/etc/preinit +++ b/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