diff --git a/files/usr/lib/lua/aredn/html.lua b/files/usr/lib/lua/aredn/html.lua index 00e39bca..3852983e 100644 --- a/files/usr/lib/lua/aredn/html.lua +++ b/files/usr/lib/lua/aredn/html.lua @@ -158,10 +158,10 @@ function html.navbar_admin(selected) html.print("
") end -function html.wait_for_reboot(delay) +function html.wait_for_reboot(delay, countdown) html.print([[ ]]) @@ -231,7 +248,7 @@ function html.reboot() html.print("http://" .. node .. ".local.mesh:8080/") else html.header(node .. " rebooting", false) - html.wait_for_reboot(20) + html.wait_for_reboot(20, 120) html.print("
") html.print("

" .. node .. " is rebooting


") html.print("

Your browser should return to this node after it has rebooted.

") @@ -240,6 +257,7 @@ function html.reboot() if node ~= "Node" then html.print("or
http://" .. node .. ".local.mesh:8080/

") end + html.print("

") end html.print("
") http_footer() diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 1c1b0ba2..a39912aa 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -450,7 +450,7 @@ if fw_install and nixio.fs.stat(tmpdir .. "/firmware") then html.print("") - html.wait_for_reboot(120) + html.wait_for_reboot(120, 300) html.print("") html.print("
") html.print("

The firmware is being updated.

") @@ -492,6 +492,7 @@ if fw_install and nixio.fs.stat(tmpdir .. "/firmware") then received a new IP address and reconnect with
http://]] .. node .. [[.local.mesh:8080/
This page will automatically reload once the upgrade has completed +

]]) http_footer() @@ -526,6 +527,7 @@ if fw_install and nixio.fs.stat(tmpdir .. "/firmware") then http://192.168.1.1:8080/
and continue setup of the node in firstboot state.
This page will automatically reload once the upgrade has completed +

]]) http_footer()