#!/bin/sh
# Down Download the DNSmasq formatted ad block list
curl "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext" | sed "s/127\.0\.0\.1/192.168.1.99/" > /etc/dnsmasq.adblock.conf
# Restart DNSmasq
/etc/init.d/service dnsmasq restart
chmod -v 755 /usr/local/bin/get-adlist.sh