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:
gedetil
2017-04-11 13:44:18 -05:00
committed by GitHub
parent aac1b1ba05
commit 08f40722c1

View File

@@ -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...";