Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- CONFIG=$1
- source /usr/sbin/helper.sh
- . /opt/share/diversion/file/post-conf.div # Added by Diversion
- echo $(ps | grep alternate-bf.conf | grep -v grep | cut -f1 -d" ") | while read line ; do kill $line ; done
- {
- echo "addn-hosts=/jffs/configs/apps.hosts"
- echo "no-poll"
- echo "no-negcache"
- echo "cache-size=1500"
- echo "min-port=4096"
- echo "expand-hosts"
- echo "bogus-priv"
- echo "local=/mydomain/"
- echo "domain=mydomain"
- echo "addn-hosts=/etc/hosts.dnsmasq"
- echo "stop-dns-rebind"
- echo "no-dhcp-interface=br0"
- echo "dhcp-leasefile=/var/lib/misc/dnsmasq-bf.leases"
- } >> "/opt/share/diversion/.conf/alternate-bf.conf"
- sed -i '/localise-queries/d' "/opt/share/diversion/.conf/alternate-bf.conf"
- sed -i '/dhcp-authoritative/d' "/opt/share/diversion/.conf/alternate-bf.conf"
- dnsmasq -C "/opt/share/diversion/.conf/alternate-bf.conf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement