|
|
@ -352,14 +352,6 @@ SetExcludeClients() {
|
|
|
|
addOrEditKeyValPair "${setupVars}" "API_EXCLUDE_CLIENTS" "${args[2]}"
|
|
|
|
addOrEditKeyValPair "${setupVars}" "API_EXCLUDE_CLIENTS" "${args[2]}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Poweroff(){
|
|
|
|
|
|
|
|
nohup bash -c "sleep 5; poweroff" &> /dev/null </dev/null &
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reboot() {
|
|
|
|
|
|
|
|
nohup bash -c "sleep 5; reboot" &> /dev/null </dev/null &
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RestartDNS() {
|
|
|
|
RestartDNS() {
|
|
|
|
"${PI_HOLE_BIN_DIR}"/pihole restartdns
|
|
|
|
"${PI_HOLE_BIN_DIR}"/pihole restartdns
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -809,8 +801,6 @@ main() {
|
|
|
|
"setdns" ) SetDNSServers;;
|
|
|
|
"setdns" ) SetDNSServers;;
|
|
|
|
"setexcludedomains" ) SetExcludeDomains;;
|
|
|
|
"setexcludedomains" ) SetExcludeDomains;;
|
|
|
|
"setexcludeclients" ) SetExcludeClients;;
|
|
|
|
"setexcludeclients" ) SetExcludeClients;;
|
|
|
|
"poweroff" ) Poweroff;;
|
|
|
|
|
|
|
|
"reboot" ) Reboot;;
|
|
|
|
|
|
|
|
"restartdns" ) RestartDNS;;
|
|
|
|
"restartdns" ) RestartDNS;;
|
|
|
|
"setquerylog" ) SetQueryLogOptions;;
|
|
|
|
"setquerylog" ) SetQueryLogOptions;;
|
|
|
|
"enabledhcp" ) EnableDHCP;;
|
|
|
|
"enabledhcp" ) EnableDHCP;;
|
|
|
|