Add reboot option

This commit is contained in:
DL6ER 2016-12-11 22:33:27 +01:00
parent 9ac378ae09
commit 2bafa2f2ac

View file

@ -83,6 +83,12 @@ SetExcludeClients(){
echo "API_EXCLUDE_CLIENTS=${args[2]}" >> /etc/pihole/setupVars.conf echo "API_EXCLUDE_CLIENTS=${args[2]}" >> /etc/pihole/setupVars.conf
} }
Reboot(){
reboot
}
for var in "$@"; do for var in "$@"; do
case "${var}" in case "${var}" in
"-p" | "password" ) SetWebPassword;; "-p" | "password" ) SetWebPassword;;
@ -91,6 +97,7 @@ for var in "$@"; do
"setdns" ) SetDNSServers;; "setdns" ) SetDNSServers;;
"setexcludedomains" ) SetExcludeDomains;; "setexcludedomains" ) SetExcludeDomains;;
"setexcludeclients" ) SetExcludeClients;; "setexcludeclients" ) SetExcludeClients;;
"reboot" ) Reboot;;
"-h" | "--help" ) helpFunc;; "-h" | "--help" ) helpFunc;;
esac esac
done done