summaryrefslogtreecommitdiff
path: root/test/get-state
blob: 38c1dc94f4d29863ec465666d9427908426baad5 (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('org.moblin.connman', "/"),
					'org.moblin.connman.Manager')

properties = manager.GetProperties()

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