1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-11-28 20:12:19 -05:00

Update gravity-adv.sh

This commit is contained in:
Jacob Salmela 2014-10-17 18:46:15 -05:00
parent cb11963981
commit 1e4e65e2c0

View File

@ -7,6 +7,7 @@ eventHorizion="/etc/dnsmasq.d/adList.conf"
# Download the original URL to a text file for easier parsing # Download the original URL to a text file for easier parsing
echo "Getting yoyo ad list..." echo "Getting yoyo ad list..."
curl -o /tmp/yoyo.txt -s http://pgl.yoyo.org/adservers/serverlist.php?hostformat=unixhosts&mimetype=plaintext curl -o /tmp/yoyo.txt -s http://pgl.yoyo.org/adservers/serverlist.php?hostformat=unixhosts&mimetype=plaintext
sleep 10
if [ -f /tmp/yoyo.txt ];then if [ -f /tmp/yoyo.txt ];then
cat /tmp/yoyo.txt | grep -v "<" | sed '/^$/d' | sed 's/\ /\\ /g' | sort > /tmp/matter.txt cat /tmp/yoyo.txt | grep -v "<" | sed '/^$/d' | sed 's/\ /\\ /g' | sort > /tmp/matter.txt
else else