mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Update savesettings.php
Implement "Halt system" button, next to "Restart system" button, on admin/settings page. Useful for doing clean shutdown before powering off. Gilbert Detillieux <gedetil> 2017-04-11
This commit is contained in:
@@ -420,6 +420,11 @@ function readAdlists()
|
||||
$success .= "The webUI settings have been updated";
|
||||
break;
|
||||
|
||||
case "halt":
|
||||
exec("sudo pihole -a halt");
|
||||
$success = "The system will halt in 5 seconds...";
|
||||
break;
|
||||
|
||||
case "reboot":
|
||||
exec("sudo pihole -a reboot");
|
||||
$success = "The system will reboot in 5 seconds...";
|
||||
|
||||
Reference in New Issue
Block a user