# opkg update# opkg install luci
# /etc/init.d/uhttpd enable# /etc/init.d/uhttpd start
$ telnet 192.168.1.1# mount_root# vi /etc/config/firewall
# wget -O /etc/dnsmasq.conf "http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq&showintro=1&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext" && /etc/init.d/dnsmasq restart
#!/bin/sh# Update banner hosts listTMP1="/tmp/dnsmasq.$$"TMP2="/tmp/hosts.$$"set -ewget -q -O "$TMP1" "http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq&showintro=1&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext"wget -q -O "$TMP2" "http://adaway.org/hosts.txt"echo "addn-hosts=/etc/hosts.ads" >> "$TMP1"mv "$TMP1" /etc/dnsmasq.confmv "$TMP2" /etc/hosts.ads/etc/init.d/dnsmasq restart
# /etc/init.d/cron start# /etc/init.d/cron enable# crontab -e0 3 * * 0 /usr/bin/update_banner_hosts
# opkg update# opkg install qos-scripts luci-app-qos# /etc/init.d/qos enable