OpenWrt 脚本
update-hosts-blocklists
#!/bin/sh
#add to /etc/smartdns/custom.conf or /etc/smartdns/smartdns.conf
# conf-file /etc/smartdns/anti-ad-smartdns.conf
#
DIR=/etc/smartdns
mkdir /tmp/hosts-blocklists
cd /tmp/hosts-blocklists
#wget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
#wget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txt
#wget https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/adblock-for-dnsmasq.conf
wget https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf
cp anti-ad-smartdns.conf $DIR
cd /tmp
rm -rf /tmp/hosts-blocklists