Use resolvconf binary found during configuration
[connman] / test / list-profiles
index fcf1830..4774114 100755 (executable)
@@ -7,15 +7,15 @@ bus = dbus.SystemBus()
 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
                                        "org.moblin.connman.Manager")
 
-profiles = manager.ListProfiles()
+properties = manager.GetProperties()
 
-for path in profiles:
+for path in properties["Profiles"]:
        print "[ %s ]" % (path)
 
-       element = dbus.Interface(bus.get_object("org.moblin.connman", path),
+       profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
                                                "org.moblin.connman.Profile")
 
-       properties = element.GetProperties()
+       properties = profile.GetProperties()
        for key in properties.keys():
                print "    %s = %s" % (key, properties[key])