diff options
| author | Waldemar Brodkorb <wbx@openwrt.org> | 2005-07-06 10:36:33 +0000 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openwrt.org> | 2005-07-06 10:36:33 +0000 |
| commit | 0de8e96a58323bf2b4255ea4050b3603d0fc8394 (patch) | |
| tree | 3cf4dcf69d69131d8f297d70ccb65e83355970f0 | |
| parent | 34968fd429e76f02c4226fbb054c7a276802380c (diff) | |
| download | upstream-0de8e96a58323bf2b4255ea4050b3603d0fc8394.tar.gz upstream-0de8e96a58323bf2b4255ea4050b3603d0fc8394.tar.bz2 upstream-0de8e96a58323bf2b4255ea4050b3603d0fc8394.zip | |
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
| -rwxr-xr-x | openwrt/target/default/target_skeleton/etc/preinit | 4 |
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 7a02e312155..061673035cb 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 |
