Browse Source

Show vendor and product

Andrea Luzzardi 18 years ago
parent
commit
c3be00b0a0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tools/scan.py

+ 2
- 0
tools/scan.py View File

@ -38,6 +38,8 @@ def showProperties(udi):
deviceProperties = deviceObj.GetAllProperties( deviceProperties = deviceObj.GetAllProperties(
dbus_interface = 'org.freedesktop.Hal.Device') dbus_interface = 'org.freedesktop.Hal.Device')
print 'Device %s' % udi print 'Device %s' % udi
print 'Vendor: %s' % deviceProperties['usb_device.vendor']
print 'Product: %s' % deviceProperties['info.product']
print 'Serial Number: %s' % deviceProperties['usb_device.serial'] print 'Serial Number: %s' % deviceProperties['usb_device.serial']
print print
print 'Volume\t\t\tUUID' print 'Volume\t\t\tUUID'


Loading…
Cancel
Save