|
|
@ -135,7 +135,7 @@ restartDNS() {
|
|
|
|
piholeEnable() {
|
|
|
|
piholeEnable() {
|
|
|
|
if [[ "${1}" == "0" ]] ; then
|
|
|
|
if [[ "${1}" == "0" ]] ; then
|
|
|
|
#Disable Pihole
|
|
|
|
#Disable Pihole
|
|
|
|
sed -i 's/^addn-hosts/#addn-hosts/' /etc/dnsmasq.d/01-pihole.conf
|
|
|
|
sed -i 's/^addn-hosts=\/etc\/pihole\/gravity.list/#addn-hosts=\/etc\/pihole\/gravity.list/' /etc/dnsmasq.d/01-pihole.conf
|
|
|
|
echo "::: Blocking has been disabled!"
|
|
|
|
echo "::: Blocking has been disabled!"
|
|
|
|
if [[ $# > 1 ]] ; then
|
|
|
|
if [[ $# > 1 ]] ; then
|
|
|
|
if [[ ${2} == *"s"* ]] ; then
|
|
|
|
if [[ ${2} == *"s"* ]] ; then
|
|
|
|