projects
/
platform
/
upstream
/
connman.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PASSED_TO_PROC_AFTER_FREE.EX
[platform/upstream/connman.git]
/
test
/
get-state
1
#!/usr/bin/python
2
3
import dbus
4
5
bus = dbus.SystemBus()
6
7
manager = dbus.Interface(bus.get_object('net.connman', "/"),
8
'net.connman.Manager')
9
10
properties = manager.GetProperties()
11
12
print("System is %s" % (properties["State"]))