set boot_wait to on in the earliest possible moment. this makes webupgrade safer...
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Wed, 6 Jul 2005 10:36:33 +0000 (10:36 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Wed, 6 Jul 2005 10:36:33 +0000 (10:36 +0000)
SVN-Revision: 1358

openwrt/target/default/target_skeleton/etc/preinit

index 7a02e31215568330dcd7568fe8c1f69f864702e7..061673035cb375463e3176d2df23545e2cc70497 100755 (executable)
@@ -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