diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-07-06 10:36:33 +0000 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2005-07-06 10:36:33 +0000 |
commit | 612153020034ec212cbba8b8a28063ddf1a8226e (patch) | |
tree | 3cf4dcf69d69131d8f297d70ccb65e83355970f0 /openwrt/target/default/target_skeleton | |
parent | f4e6a8409c061b55e009a200cde12b7aadf3f673 (diff) | |
download | mtk-20170518-612153020034ec212cbba8b8a28063ddf1a8226e.zip mtk-20170518-612153020034ec212cbba8b8a28063ddf1a8226e.tar.gz mtk-20170518-612153020034ec212cbba8b8a28063ddf1a8226e.tar.bz2 |
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
Diffstat (limited to 'openwrt/target/default/target_skeleton')
-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 7a02e31..0616730 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 |