Show the connected value for each network
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Aug 2008 02:10:12 +0000 (04:10 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Aug 2008 02:10:12 +0000 (04:10 +0200)
test/list-networks

index 72a9ad18ed3145753697396e7fee0c4747eb48cd..d3fa34d982ba093aa20af4b6fc9b5561a0bb334c 100755 (executable)
@@ -19,4 +19,8 @@ for path in elements:
                print "[ %s ]" % (path)
 
        if (properties["Type"] == "network"):
-               print "    %s" % (properties["SSID"])
+               if (properties["Connected"] == 1):
+                       state = "*"
+               else:
+                       state = " "
+               print "    %s %s" % (state, properties["SSID"])