7 manager = dbus.Interface(bus.get_object('org.freedesktop.NetworkManager',
8 '/org/freedesktop/NetworkManager'),
9 'org.freedesktop.NetworkManager')
11 states = [ "unknown", "asleep", "connecting", "connected", "disconnected" ]
13 state = manager.state()
15 print "System is %s" % (states[state])