From: Daniel Wagner <[email protected]>
test-connman services also reports the identifier only. This makes
copy&past with the mouse a bit simpler.
---
test/list-services | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/list-services b/test/list-services
index be447b8..def1c07 100755
--- 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",
--
1.7.9.3.362.g71319
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman