projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb4a4ea
)
list-services: Print only identifier instead of path
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 19 Mar 2012 13:03:26 +0000
(14:03 +0100)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Tue, 20 Mar 2012 10:16:04 +0000
(12:16 +0200)
test-connman services also reports the identifier only. This makes
copy&paste with the mouse a bit simpler.
test/list-services
patch
|
blob
|
history
diff --git
a/test/list-services
b/test/list-services
index be447b8d0d278fa543db6ecf6a59930c9f0b080e..def1c07ac572752e88b6a2227b23ce75c5f59673 100755
(executable)
--- a/
test/list-services
+++ b/
test/list-services
@@
-31,7
+31,8
@@
manager = dbus.Interface(bus.get_object("net.connman", "/"),
for path, properties in manager.GetServices():
service = dbus.Interface(bus.get_object("net.connman", path),
"net.connman.Service")
- print "[ %s ]" % (path)
+ identifier = path[path.rfind("/") + 1:]
+ print "[ %s ]" % (identifier)
for key in properties.keys():
if key in ["IPv4", "IPv4.Configuration",