From 2bafa2f2ac685798d120ab1393940354978d4e75 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 11 Dec 2016 22:33:27 +0100 Subject: [PATCH] Add reboot option --- advanced/Scripts/webpage.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 35ba6875..bdd3a17f 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -83,6 +83,12 @@ SetExcludeClients(){ echo "API_EXCLUDE_CLIENTS=${args[2]}" >> /etc/pihole/setupVars.conf } +Reboot(){ + + reboot + +} + for var in "$@"; do case "${var}" in "-p" | "password" ) SetWebPassword;; @@ -91,6 +97,7 @@ for var in "$@"; do "setdns" ) SetDNSServers;; "setexcludedomains" ) SetExcludeDomains;; "setexcludeclients" ) SetExcludeClients;; + "reboot" ) Reboot;; "-h" | "--help" ) helpFunc;; esac done