2010-06-06 18:11:57 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import dbus, sys
|
|
|
|
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
|
|
|
|
if len(sys.argv) == 2:
|
|
|
|
path = sys.argv[1]
|
|
|
|
else:
|
|
|
|
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
|
|
|
|
'org.ofono.Manager')
|
2010-09-09 19:37:37 +00:00
|
|
|
modems = manager.GetModems()
|
|
|
|
path = modems[0][0]
|
2010-06-06 18:11:57 +00:00
|
|
|
|
|
|
|
radiosettings = dbus.Interface(bus.get_object('org.ofono', path),
|
|
|
|
'org.ofono.RadioSettings')
|
|
|
|
|
|
|
|
properties = radiosettings.GetProperties()
|
|
|
|
|
|
|
|
print "Technology preference: %s" % (properties["TechnologyPreference"])
|