From bb4f43ca4c7a3d1b147a57065fc88e65f703ad35 Mon Sep 17 00:00:00 2001 From: Darryl Quinn Date: Mon, 6 Apr 2015 17:10:06 -0500 Subject: [PATCH] feature: auto-refresh after sys upgrade, chg link to codename when sys upgrade --- files/www/cgi-bin/admin | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index f672f363..266c7392 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -217,7 +217,9 @@ if($fw_install and -f "$tmpdir/firmware") { my $junk; http_header(); - html_header("FIRMWARE UPDATE IN PROGRESS", 1); + html_header("FIRMWARE UPDATE IN PROGRESS", 0); + print ""; + print "\n"; print "
\n"; print "

The firmware is being updated.

\n"; print "

DO NOT REMOVE POWER UNTIL UPDATE IS FINISHED

\n"; @@ -234,7 +236,8 @@ DHCP lease and reset any name service caches you may be using.

The node will reboot twice while the configuration is applied
Wait for the Status 4 LED to start blinking, then stop blinking twice.
When the Status 4 LED is solid on you can get your new DHCP lease and reconnect with
-http://localnode.local.mesh:8080/

+http://$node:8080/
+(This page will automatically reload in 150 seconds)
"; open(FILE, "/sbin/sysupgrade -q $tmpdir/firmware 2>&1 |") or die; @@ -250,7 +253,8 @@ When the Status 4 LED is solid on you can get your new DHCP lease and reconnect DHCP lease and reset any name service caches you may be using.

Wait for the Status 4 LED to start blinking, then stop blinking.
When the Status 4 LED is solid on you can get your new DHCP lease and reconnect with
-http://localnode.local.mesh:8080/

+http://localnode.local.mesh:8080/
+(This page will automatically reload in 150 seconds) "; page_footer();