update-blocklist.shon commit optional destination file, verbose debugging for wget in syslog (f63497a)
   1# simple blacklist updater for OpenWRT
   2
   3#! /bin/bash
   4set -e
   5
   6blacklist=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