1# simple blacklist updater for OpenWRT
23
#! /bin/bash
4set -e
56
blacklist=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