Browse Source

Fix to see both removable and hotpluggable devices

master
Andrea Luzzardi 16 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)
deviceProperties = deviceObj.GetAllProperties(
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'
self.vendor = None
self.product = None


Loading…
Cancel
Save