5535f73a158b943156a2ad170281122cda5d5da7
   1# simple blacklist updater for OpenWRT
   2
   3#! /bin/bash
   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