diff options
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rwxr-xr-x | test/get-state | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 21ceba69..d5638122 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,5 @@ EXTRA_DIST = list-interfaces start-scanning select-network simple-agent \ - show-introspection test-supplicant + get-state show-introspection test-supplicant MAINTAINERCLEANFILES = Makefile.in 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) |