mirror of https://github.com/hak5/openwrt.git
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: 1358lede-17.01
parent
f4e6a8409c
commit
6121530200
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue