Skip to content

Instantly share code, notes, and snippets.

@ryanwoodsmall
Last active August 26, 2017 00:00
Show Gist options
  • Save ryanwoodsmall/89bd3908ed57b7216032a51fc82c6cf9 to your computer and use it in GitHub Desktop.
Save ryanwoodsmall/89bd3908ed57b7216032a51fc82c6cf9 to your computer and use it in GitHub Desktop.
openwrt adservers crontab, add /etc/hosts.adservers to dnsmasq as additional hosts file
#1 0 * * * wget -q -O - 'http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=0' | sed '/<pre>/,/<\/pre>/!d' | grep -v 'pre>' > /etc/hosts.adservers
1 0 * * * wget -q -O - 'http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext' > /etc/hosts.adservers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment