Add test script for showing connection details
[connman] / test / list-networks
index 72a9ad1..11726a8 100755 (executable)
@@ -19,4 +19,8 @@ for path in elements:
                print "[ %s ]" % (path)
 
        if (properties["Type"] == "network"):
-               print "    %s" % (properties["SSID"])
+               if (properties["Enabled"] == 1):
+                       state = "*"
+               else:
+                       state = " "
+               print "    %s %s" % (state, properties["WiFi.Name"])