I tried the following content in /jffs/scripts/dnsmasq.postconf, none worked (/tmp/etc/dnsmasq.conf doesn't change).
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_replace "cache-size=1500" "cache-size=10000" $CONFIG
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_replace "cache-size=1500" "cache-size=10000" /tmp/etc/dnsmasq.conf
#!/bin/sh
CONFIG=$1
sed -i 's/cache-size=1500/cache-size=10000/g' $CONFIG
#!/bin/sh
CONFIG=$1
sed -i 's/cache-size=1500/cache-size=10000/g' /tmp/etc/dnsmasq.conf
After inputting helper.sh pc_replace "cache-size=1500" "cache-size=10000" /tmp/etc/dnsmasq.conf with putty, the file /tmp/etc/dnsmasq.conf does not change, however, the file does change after the command sed -i 's/cache-size=1500/cache-size=10000/g' /tmp/etc/dnsmasq.conf, but that doesn't have any real effect. Where did I go wrong?