From d8abc1d2666d725e58da52bcb2e8191ff7b3b0db Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 13 Aug 2018 13:49:47 +0200 Subject: [PATCH] Storing BLOCKING=true/false in setupVars.conf Signed-off-by: DL6ER --- pihole | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pihole b/pihole index a4fcadb3..e08e026a 100755 --- a/pihole +++ b/pihole @@ -191,6 +191,8 @@ Time: fi local str="Pi-hole Disabled" + sed -i "/BLOCKING=/d" "${setupVars}" + echo "BLOCKING=true" >> "${setupVars}" fi else # Enable Pi-hole @@ -203,6 +205,8 @@ Time: if [[ -e "${blacklist}" ]]; then mv "${blacklist}.bck" "${blacklist}" fi + sed -i "/BLOCKING=/d" "${setupVars}" + echo "BLOCKING=false" >> "${setupVars}" fi restartDNS reload