wireless-net/trunk/sbin/gen-wlan-files.py
arekm
cvs at pld-linux.org
Wed Mar 22 21:30:38 CET 2006
Author: arekm
Date: Wed Mar 22 21:30:27 2006
New Revision: 7281
Modified:
wireless-net/trunk/sbin/gen-wlan-files.py
Log:
Print warnings when p2p iptables not available.
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 Mar 22 21:30:27 2006
@@ -29,14 +29,18 @@
is_p2p = run("iptables -m p2p --help > /dev/null 2>&1", False)
if is_p2p == 0:
is_p2p = True
+ print "P2P Enabled."
else:
is_p2p = False
+ print "WARNING: P2P Disabled."
is_ipp2p = run("iptables -m ipp2p --help > /dev/null 2>&1", False)
if is_ipp2p == 0:
is_ipp2p = True
+ print "IPP2P Enabled."
else:
is_ipp2p = False
+ print "WARNING: IPP2P Disabled."
config = ConfigParser.ConfigParser()
config.read('/etc/wireless-net/wlan.conf')
More information about the pld-cvs-commit
mailing list