From: Andrew Lorimer Date: Tue, 11 Dec 2018 05:46:29 +0000 (+1100) Subject: add blocklist updater script X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/de0b71aa9f492f9f32fd949dcd625671852c4a32?ds=sidebyside add blocklist updater script --- 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