bugfix: add reboot button to admin page to support upgrade_mode recovery

ref AREDN->ticket:204

Change-Id: I0274dc9dd0ed02a2461e2ae0c8aaf4917dae4b16
This commit is contained in:
Darryl Quinn 2017-01-20 22:12:43 -06:00
parent 8ddf49ba32
commit bb0cb625d3
1 changed files with 4 additions and 1 deletions

View File

@ -58,6 +58,7 @@ sub firmware_list_gen
$debug = 0;
$| = 1;
read_postdata();
reboot_page("/cgi-bin/status") if $parms{button_reboot};
read_query_string();
$node = nvram_get("node");
$tmpdir = "/tmp/web/admin";
@ -530,7 +531,9 @@ print "<tr><td>\n";
navbar("admin");
print "</td></tr>\n";
print "<tr><td align=center><a href='/help.html#admin' target='_blank'>Help</a></td></tr>\n";
print "<tr><td align=center><a href='/help.html#admin' target='_blank'>Help</a>&nbsp;&nbsp;";
print "<input type=submit name=button_reboot value=Reboot style='font-weight:bold' title='Immediately reboot this node'>";
print "</td></tr>\n";
print "<tr><td align=center>\n";
print "<table cellspacing=10>\n";