From: Andrew Lorimer Date: Tue, 11 Dec 2018 05:46:48 +0000 (+1100) Subject: Merge branch 'master' of charles:/tank/andrew/code/scripts X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/05a9d272b0c9372b3a1dfbaa9752ea332b63a170?hp=02cf747f6eb62d12d80d1115b2b7f863a6adbc69 Merge branch 'master' of charles:/tank/andrew/code/scripts --- diff --git a/update-blocklist.sh b/update-blocklist.sh new file mode 100644 index 0000000..7630cc3 --- /dev/null +++ b/update-blocklist.sh @@ -0,0 +1,10 @@ +# simple blacklist updater for OpenWRT + +#! /bin/bash +set -e + +blacklist=http://www.squidblacklist.org/downloads/dg-ads.acl +mkdir -p /tmp/dnsmasq-blocklist +curl -s --max-filesize 20M -o /tmp/dnsmasq-blocklist/sbl-dg-ads.hosts +$blacklist +/etc/init.d/dnsmasq restart