Home | History | Annotate | Download | only in scripts

Lines Matching refs:device

19     print cmd, 'get-property <devname> [propname] - List device property.'
25 def set_device_property(device, property_key, value):
26 """Sets a property on a device
28 @param device Interface representing a device
33 shill_proxy.ShillProxy.set_dbus_property(device, property_key, value)
37 def print_device_properties(device, property_key):
38 """Prints one or all properties on a device
40 @param device Interface representing a device
47 shill.dbus2primitive(device.GetProperties(utf8_strings=True)),
51 shill_proxy.ShillProxy.get_dbus_property(device, property_key)},
57 """ Display detailed device information. """
59 for device in shill.get_devices():
60 print 'Device: %s' % device.object_path
61 print_device_properties(device, None)
67 """ Main entry point for the device script. """
78 device = shill.find_object('Device', {'Name': sys.argv[2]})
79 if device is None:
80 print "No device named %s found" % sys.argv[2]
85 device,
90 device,