From de0b71aa9f492f9f32fd949dcd625671852c4a32 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Tue, 11 Dec 2018 16:46:29 +1100 Subject: [PATCH] add blocklist updater script --- update-blocklist.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 update-blocklist.sh 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 -- 2.43.2