add blocklist updater script
authorAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 05:46:29 +0000 (16:46 +1100)
committerAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 05:46:29 +0000 (16:46 +1100)
update-blocklist.sh [new file with mode: 0644]
diff --git a/update-blocklist.sh b/update-blocklist.sh
new file mode 100644 (file)
index 0000000..7630cc3
--- /dev/null
@@ -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