summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Eckert <feckert@tdt.de>2016-03-15 15:31:54 +0100
committerFlorian Eckert <Eckert.Florian@googlemail.com>2016-03-16 11:38:09 +0100
commit2e4dea8046eb35af8ca2ce58a041d6defff9e73a (patch)
tree1d3bf7d24741ce017368d2c6d6d0c166e2147558
parentf1190e2d07f76735e0927704de7a5cf8b37998d0 (diff)
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>
-rw-r--r--modules/luci-mod-admin-full/luasrc/controller/admin/system.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
index 1b38c6783c..ee8d1d3185 100644
--- a/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
+++ b/modules/luci-mod-admin-full/luasrc/controller/admin/system.lua
@@ -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
--