Firewallbuilder generated script failes due to a dot in the variablename.
Brought to you by:
mikehorn
Hi
When using an object of type "attached network" on an openwrt device the generated variable names in the resulting script that will have a dot "." in it. This dot will fail the execution of the script.
In my environment the attached sed command "fixes" the output script.
sed 's:i_eth0.2_network:i_eth0_2_network:g' < /etc/init.d/fwbuilder.fw > /etc/init.d/fwbuilder.fw_test
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="14.07"
DISTRIB_REVISION="r42625"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker 14.07"
DISTRIB_TAINTS=""
root@lin:~# cat /etc/openwrt_version
14.07
Firewallbuilder version: 5.1.0.3599