Browse Source

Fix to see both removable and hotpluggable devices

master
Andrea Luzzardi 17 years ago
parent
commit
94e044780e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pam_usb/tools/pamusb-conf

+ 1
- 1
pam_usb/tools/pamusb-conf View File

@ -28,7 +28,7 @@ class Device:
udi) udi)
deviceProperties = deviceObj.GetAllProperties( deviceProperties = deviceObj.GetAllProperties(
dbus_interface = 'org.freedesktop.Hal.Device') dbus_interface = 'org.freedesktop.Hal.Device')
if deviceProperties['storage.removable'] != 1:
if deviceProperties['storage.removable'] != 1 and deviceProperties['storage.hotpluggable'] != 1:
raise Exception, 'Not a removable device' raise Exception, 'Not a removable device'
self.vendor = None self.vendor = None
self.product = None self.product = None


Loading…
Cancel
Save