IsaacFL
Regular Contributor
I was trying to modify my dnsmasq.conf (I am using ipv6) using the dnsmasq.postconf script method described in the wiki.
I am trying to change from:
to: (adding ra-names)
Now I already have AB-Solution 3.8 installed, so it already had an entry, so I added to it to get this:
When I rebooted, this killed the router and had to do a default reset to get it working again. I had saved backup so ok.
My question, is it my script that hosed it up, or some sort of interaction with AB-Solution adblocker?
My scripting competence is basically copy/paste and hope it works, so probably something I don't understand. If there is another way to activate the ra-names option, I couldn't find it.
I am trying to change from:
Code:
dhcp-range=lan,::1000,::2000,constructor:br0,86400
Code:
dhcp-range=lan,::1000,::2000,constructor:br0,ra-names,86400
Now I already have AB-Solution 3.8 installed, so it already had an entry, so I added to it to get this:
Code:
IsaacFL@RT-AC1900P:/jffs/scripts# cat dnsmasq.postconf
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_insert "constructor:br0," "ra-names," $CONFIG
# DO NOT EDIT this part of the file #
# generated by AB-Solution 3.8
if [ -d "/tmp/mnt/AdBlock" ];then
source /tmp/mnt/AdBlock/adblocking/scripts/ab_dnsmasq_postconf.sh
logger "AB-Solution linked ab_dnsmasq_postconf.sh via $0"
fi
# end of DO NOT EDIT #
When I rebooted, this killed the router and had to do a default reset to get it working again. I had saved backup so ok.
My question, is it my script that hosed it up, or some sort of interaction with AB-Solution adblocker?
My scripting competence is basically copy/paste and hope it works, so probably something I don't understand. If there is another way to activate the ra-names option, I couldn't find it.