luci-mod-admin-full: add sleep before sysupgrade
- Under some conditions the system will shutdown uhttpd before the page will be delivered to the client. Waiting one second should eleminate this behaviour. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
This commit is contained in:
parent
f1190e2d07
commit
2e4dea8046
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ function action_flashops()
|
|||
msg = luci.i18n.translate("The system is flashing now.<br /> DO NOT POWER OFF THE DEVICE!<br /> Wait a few minutes before you try to reconnect. It might be necessary to renew the address of your computer to reach the device again, depending on your settings."),
|
||||
addr = (#keep > 0) and "192.168.1.1" or nil
|
||||
})
|
||||
fork_exec("killall dropbear uhttpd; sleep 1; /sbin/sysupgrade %s %q" %{ keep, image_tmp })
|
||||
fork_exec("sleep 1; killall dropbear uhttpd; sleep 1; /sbin/sysupgrade %s %q" %{ keep, image_tmp })
|
||||
end
|
||||
elseif reset_avail and luci.http.formvalue("reset") then
|
||||
--
|
||||
|
|
Loading…
Reference in a new issue