From ee40bc04231fb34d7819a07ff20f7c324b94f319 Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Sat, 10 Oct 2015 14:02:18 -0500 Subject: [PATCH] forgot to redirect it to the file --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 55185954..9ca3394b 100755 --- a/gravity.sh +++ b/gravity.sh @@ -137,7 +137,7 @@ function gravity_advanced() echo "** $numberOf unique domains trapped in the event horizon." # Format domain list as "192.168.x.x domain.com" echo "** Formatting domains into a HOSTS file..." - cat $origin/$eventHorizon | awk '{sub(/\r$/,""); print "'"$piholeIP"'" $0}' > $origin/$accretionDisc + cat $origin/$eventHorizon | awk '{sub(/\r$/,""); print "'"$piholeIPv4 "'" $0"\n""'"$piholeIPv6 "'" $0}' > $origin/$accretionDisc # Copy the file over as /etc/pihole/gravity.list so dnsmasq can use it sudo cp $origin/$accretionDisc $adList kill -HUP $(pidof dnsmasq)