projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da467e
)
Indicate the current active profile
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 1 Apr 2009 03:36:49 +0000
(20:36 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 1 Apr 2009 03:36:49 +0000
(20:36 -0700)
test/list-profiles
patch
|
blob
|
history
diff --git
a/test/list-profiles
b/test/list-profiles
index
9a68d20
..
710a36c
100755
(executable)
--- 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")