From: Marcel Holtmann Date: Wed, 1 Apr 2009 03:36:49 +0000 (-0700) Subject: Indicate the current active profile X-Git-Tag: 2.0_alpha~3923 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cded07a3be87def98f9aafe7b5dd6c8f3b232e9;p=framework%2Fconnectivity%2Fconnman.git Indicate the current active profile --- diff --git a/test/list-profiles b/test/list-profiles index 9a68d20..710a36c 100755 --- a/test/list-profiles +++ b/test/list-profiles @@ -9,8 +9,13 @@ manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), properties = manager.GetProperties() +active = properties["ActiveProfile"] + for path in properties["Profiles"]: - print "[ %s ]" % (path) + if (active == path): + print "[ %s ] <== active" % (path) + else: + print "[ %s ]" % (path) profile = dbus.Interface(bus.get_object("org.moblin.connman", path), "org.moblin.connman.Profile")