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

arekm cvs at pld-linux.org
Tue Jul 19 08:17:18 CEST 2005


Author: arekm
Date: Tue Jul 19 08:17:16 2005
New Revision: 6223

Modified:
   wireless-net/trunk/sbin/gen-wlan-files.py
Log:
Small fixes.

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	Tue Jul 19 08:17:16 2005
@@ -12,9 +12,9 @@
 	fcntl.ioctl(s.fileno(), SIOCGIWNAME, iface.strip()+(32-len(iface.strip()))*'\0')
     except IOError:
 	s.close()
-	return false
+	return False
     s.close()
-    return true
+    return True
 
 config = ConfigParser.ConfigParser()
 config.read('/etc/wireless-net/wlan.conf')
@@ -123,7 +123,7 @@
     host = string.strip(l[6])
     mac = string.strip(l[7])
 
-    print "Running configuration for %s (%s, down %s, up %s)" % (l, ip, speed_down, speed_up)
+    print "Running configuration for %s (%s, down %s, up %s)" % (login, ip, speed_down, speed_up)
 
     if passwd != "apuser":
 	fppap.write("%s\t%s\t%s\t%s\n" % (login, "\"*\"", passwd, ip))



More information about the pld-cvs-commit mailing list