97c9031d76a5b1f856a7d2e80e421798db147313
   1# simple blacklist updater for OpenWRT
   2
   3#! /bin/sh
   4set -e
   5
   6blacklist=https://v.firebog.net/hosts/Easylist.txt
   7mkdir -p /tmp/dnsmasq-blocklist
   8curl -s --max-filesize 20M -o  /tmp/dnsmasq-blocklist/ads $blacklist
   9sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads
  10/etc/init.d/dnsmasq restart