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

arekm cvs at pld-linux.org
Thu Dec 8 23:01:58 CET 2005


Author: arekm
Date: Thu Dec  8 23:01:53 2005
New Revision: 6624

Modified:
   wireless-net/trunk/sbin/gen-wlan-files.py
Log:
p2p detection fix.

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	Thu Dec  8 23:01:53 2005
@@ -16,7 +16,7 @@
     s.close()
     return True
 
-is_p2p = os.system("iptables -m p2p --help > /dev/null 2>&1")
+is_p2p = os.system("iptables -m p2p --help 2>&1 | grep -qE 'match.*p2p'")
 if is_p2p == 0:
 	is_p2p = True
 else:



More information about the pld-cvs-commit mailing list