From 0cded07a3be87def98f9aafe7b5dd6c8f3b232e9 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 31 Mar 2009 20:36:49 -0700 Subject: [PATCH] Indicate the current active profile --- test/list-profiles | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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") -- 1.7.9.5