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 72a9ad1..d3fa34d 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"])