Merge pull request #1412 from RaspAP/fix/sys-functions

Ajaxifies system reboot + shutdown
This commit is contained in:
Bill Zimmerman
2023-10-09 08:42:34 +02:00
committed by GitHub
7 changed files with 80 additions and 11 deletions

View File

@@ -47,15 +47,6 @@ function DisplaySystem(&$extraFooterScripts)
}
}
}
if (isset($_POST['system_reboot'])) {
$status->addMessage("System Rebooting Now!", "warning", false);
$result = shell_exec("sudo /sbin/reboot");
}
if (isset($_POST['system_shutdown'])) {
$status->addMessage("System Shutting Down Now!", "warning", false);
$result = shell_exec("sudo /sbin/shutdown -h now");
}
}
if (isset($_POST['RestartLighttpd'])) {