The path_ifup[] and path_ifdown[] are Debian specific
[connman] / test / list-networks
index 8f7e01b..8b1ade1 100755 (executable)
@@ -25,7 +25,8 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
-       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+       if properties["Type"] not in ["wifi", "wimax",
+                                       "bluetooth", "cellular"]:
                continue;
 
        print "[ %s ]" % (path)
@@ -42,7 +43,7 @@ for path in properties["Devices"]:
                        if (key == "WiFi.SSID"):
                                ssid = convert_ssid(properties[key])
                                print "        %s = [ %s ]" % (key, ssid)
-                       elif (key == "WiFi.Strength"):
+                       elif (key == "Strength"):
                                print "        %s = %d" % (key, properties[key])
                        else:
                                print "        %s = %s" % (key, properties[key])