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 | ce81f9a8734f3039793e3b09060ef2d240254b25 (patch) | |
tree | dac15d4276427218f5e0903552872ebbf6e591b3 /target | |
parent | 267f3a2997ec1afeac93ed54082bfa3a997967e7 (diff) | |
download | upstream-ce81f9a8734f3039793e3b09060ef2d240254b25.tar.gz upstream-ce81f9a8734f3039793e3b09060ef2d240254b25.tar.bz2 upstream-ce81f9a8734f3039793e3b09060ef2d240254b25.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/openwrt@1358 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x | target/default/target_skeleton/etc/preinit | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/default/target_skeleton/etc/preinit b/target/default/target_skeleton/etc/preinit index 7a02e31215..061673035c 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 |