1# simple blacklist updater for OpenWRT
23
#! /bin/bash
4set -e
56
blacklist=http://www.squidblacklist.org/downloads/dg-ads.acl
7mkdir -p /tmp/dnsmasq-blocklist
8curl -s --max-filesize 20M -o /tmp/dnsmasq-blocklist/sbl-dg-ads.hosts
9$blacklist
10/etc/init.d/dnsmasq restart