bugfix: firstboot button does not function

This commit is contained in:
Joe Ayers 2018-12-12 19:03:40 -08:00 committed by Joe AE6XE
parent 97938b4697
commit d188fcf980
1 changed files with 2 additions and 1 deletions

View File

@ -118,13 +118,14 @@ sub setUSBOutput()
}
# ----- CALLBACKS ----------
read_postdata({acceptfile => false});
if($parms{button_firstboot})
{
system "firstboot -y";
reboot_page("/cgi-bin/status");
}
read_postdata({acceptfile => false});
reboot_page("/cgi-bin/status") if $parms{button_reboot};
$node = nvram_get("node");