contrib/meshwizard: use renamed interface name for masq_src entry for wlan interfaces
authorManuel Munz <freifunk@somakoma.de>
Fri, 24 Jun 2011 18:03:13 +0000 (18:03 +0000)
committerManuel Munz <freifunk@somakoma.de>
Fri, 24 Jun 2011 18:03:13 +0000 (18:03 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh

index e32462663da69ebd371c118edfc4af58588a335c..299b167fe5d901c9a6be743e46569847d7b3c2a4 100755 (executable)
@@ -124,7 +124,7 @@ for i in $networks; do
         # check if the dhcprange is inside meshnet
         dhcpinmesh="$($dir/helpers/check-range-in-range.sh $dhcprange $meshnet)"
         if [ ! "$dhcpinmesh" == 1 ]; then
-                [ -z "$(echo $currms |grep ${net}dhcp)" ] && uci add_list firewall.zone_freifunk.masq_src="${net}dhcp"
+                [ -z "$(echo $currms |grep ${netrenamed}dhcp)" ] && uci add_list firewall.zone_freifunk.masq_src="${netrenamed}dhcp"
         fi
 done