wireless-net/trunk/sbin/gen-wlan-files.py

arekm cvs at pld-linux.org
Wed Apr 12 15:52:44 CEST 2006


Author: arekm
Date: Wed Apr 12 15:52:43 2006
New Revision: 7343

Modified:
   wireless-net/trunk/sbin/gen-wlan-files.py
Log:
Allow on all ap interfaces.

Modified: wireless-net/trunk/sbin/gen-wlan-files.py
==============================================================================
--- wireless-net/trunk/sbin/gen-wlan-files.py	(original)
+++ wireless-net/trunk/sbin/gen-wlan-files.py	Wed Apr 12 15:52:43 2006
@@ -266,12 +266,12 @@
     if passwd == "apuser":
         for iface in ap_iface:
             run("ip neigh del %s dev %s" % (ip, iface))
-        if mac != "any":
-            run("iptables -A apchain -i %s -s %s -m mac --mac-source %s -j ACCEPT" % (iface, ip, mac))
-            run("ip neigh replace %s lladdr %s dev %s" % (ip, mac, iface))
-        else:
-            run("iptables -A apchain -i %s -s %s -j ACCEPT" % (iface, ip))
-        run("iptables -A apchain -o %s -d %s -j ACCEPT" % (iface, ip))
+            if mac != "any":
+                run("iptables -A apchain -i %s -s %s -m mac --mac-source %s -j ACCEPT" % (iface, ip, mac))
+                run("ip neigh replace %s lladdr %s dev %s" % (ip, mac, iface))
+            else:
+                run("iptables -A apchain -i %s -s %s -j ACCEPT" % (iface, ip))
+            run("iptables -A apchain -o %s -d %s -j ACCEPT" % (iface, ip))
 
     if mac == "any":
         continue


More information about the pld-cvs-commit mailing list