summaryrefslogtreecommitdiff
path: root/test/get-state
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-04-07 04:26:38 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-04-07 04:26:38 +0200
commit7a2572623c022fd36f6e34f33d47fa90b479a5c0 (patch)
treefff1886f4bf603d0546845a2826407d6f20f19bf /test/get-state
parentb55e7165b179c3c97a372647ef0a889e4ef81675 (diff)
downloadconnman-7a2572623c022fd36f6e34f33d47fa90b479a5c0.tar.gz
connman-7a2572623c022fd36f6e34f33d47fa90b479a5c0.tar.bz2
connman-7a2572623c022fd36f6e34f33d47fa90b479a5c0.zip
Add simple script to show the master state
Diffstat (limited to 'test/get-state')
-rwxr-xr-xtest/get-state12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/get-state b/test/get-state
new file mode 100755
index 00000000..e5b130c8
--- /dev/null
+++ b/test/get-state
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
+ 'org.freedesktop.connman.Manager')
+
+state = manager.GetState()
+
+print "System is %s" % (state)