summaryrefslogtreecommitdiff
path: root/test/get-state
blob: e991f58306c3439aaaad4511e625c900e333b453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

import dbus

bus = dbus.SystemBus()

manager = dbus.Interface(bus.get_object('net.connman', "/"),
					'net.connman.Manager')

properties = manager.GetProperties()

print("System is %s" % (properties["State"]))