I added a script to "/jffs/configs/dnsmasq.postconf" with content:
After reboot my "dnsmasq.conf" still has "dhcp-option=lan,option6:23,fe80::ea84:0000:0000:fe69".Bash:#!/bin/sh #/jffs/configs/dnsmasq.postconf CONFIG=$1 source /usr/sbin/helper.sh sed -i "s/dhcp-option=lan,option6:23,.*/dhcp-option=lan,option6:23,[fe80::ea84:0000:0000:fe69]/" $CONFIG
If I execute the "sed" command manually then the "dnsmasq.conf" is updated (brackets are added). Am I doing anything wrong?
It should be in /jffs/scripts/dnsmasq.postconf
For reference, my postconf:
Code:
#!/bin/sh
## /jffs/scripts/dnsmasq.postconf
sed -i "s/dhcp-option=lan,option6:23,.*/dhcp-option=lan,option6:23,[fe80::ba27:ebff:fe9f:8295]/" $1