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
}
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