diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:36:49 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:36:49 -0700 |
commit | 0cded07a3be87def98f9aafe7b5dd6c8f3b232e9 (patch) | |
tree | 64bb88126194b5b0f47b4166cc8f25a15a1d042d | |
parent | 2da467e698563d3be334a2bbf7038cb74e56c753 (diff) | |
download | connman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.tar.gz connman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.tar.bz2 connman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.zip |
Indicate the current active profile
-rwxr-xr-x | test/list-profiles | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/list-profiles b/test/list-profiles index 9a68d20e..710a36c2 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") |