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?hp=f9c7f592e40d1f760a83c85f80bc43a39b7bbe63 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