mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
change restartdnsmasq to restartdns
This commit is contained in:
parent
dda448e050
commit
3ca3eaa62c
@ -322,7 +322,7 @@ gravity_reload() {
|
|||||||
# sed -i "s/^addn-hosts.*/addn-hosts=$adList/" /etc/dnsmasq.d/01-pihole.conf
|
# sed -i "s/^addn-hosts.*/addn-hosts=$adList/" /etc/dnsmasq.d/01-pihole.conf
|
||||||
find "$piholeDir" -type f -exec chmod 666 {} \;
|
find "$piholeDir" -type f -exec chmod 666 {} \;
|
||||||
|
|
||||||
pihole restartdnsmasq
|
pihole restartdns
|
||||||
}
|
}
|
||||||
|
|
||||||
for var in "$@"
|
for var in "$@"
|
||||||
|
4
pihole
4
pihole
@ -165,7 +165,7 @@ helpFunc() {
|
|||||||
echo "::: status Is Pi-Hole Enabled or Disabled"
|
echo "::: status Is Pi-Hole Enabled or Disabled"
|
||||||
echo "::: enable Enable Pi-Hole DNS Blocking"
|
echo "::: enable Enable Pi-Hole DNS Blocking"
|
||||||
echo "::: disable Disable Pi-Hole DNS Blocking"
|
echo "::: disable Disable Pi-Hole DNS Blocking"
|
||||||
echo "::: restartdnsmasq Restart dnsmasq"
|
echo "::: restartdns Restart dnsmasq"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ case "$1" in
|
|||||||
"enable" ) piholeEnable 1;;
|
"enable" ) piholeEnable 1;;
|
||||||
"disable" ) piholeEnable 0;;
|
"disable" ) piholeEnable 0;;
|
||||||
"status" ) piholeStatus "$2";;
|
"status" ) piholeStatus "$2";;
|
||||||
"restartdnsmasq" ) restartDNS;;
|
"restartdns" ) restartDNS;;
|
||||||
|
|
||||||
* ) helpFunc;;
|
* ) helpFunc;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user