1) Is it possible to view the configuration of dnsmasq after /jffs/scripts/dnsmasq.postconf runs ?
2) What is wrong with the following dnsmasq.postconf script ? Running this script from the command line returns ...
2) What is wrong with the following dnsmasq.postconf script ? Running this script from the command line returns ...
Code:
./dnsmasq.postconf: line 9: : No such file or directory
Code:
#!/opt/bin/bash
PRIV_VLAN=(eth1.1 eth1.2 eth1.3 eth1.4)
SWITCH_PORT=(3 2 1 0)
VLAN_ID=(10 20 30 40)
for (( i=0; i<${#PRIV_VLAN[@]}; i++ )); do
cat <<EOF >>"$1"
interface=${PRIV_VLAN[i]}
dhcp-range=${PRIV_VLAN[i]},192.168.${VLAN_ID[i]}.0.2,192.168.${VLAN_ID[i]}0.254,255.255.255.0,8h
dhcp-option=${PRIV_VLAN[i]},3,192.168.${VLAN_ID[i]}.1
dhcp-option=${PRIV_VLAN[i]},6,208.67.222.222,208.67.220.220
EOF
done
Last edited: