add toggle to enable or disable pi-hole

This commit is contained in:
Tommy Huff 2016-10-20 08:45:20 -04:00
parent 9aa38cf0ae
commit 7d7e17b351
2 changed files with 54 additions and 1 deletions

View file

@ -319,7 +319,7 @@ gravity_reload() {
#First escape forward slashes in the path:
adList=${adList//\//\\\/}
#Now replace the line in dnsmasq file
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 {} \;
dnsmasqPid=$(pidof dnsmasq)