From 94e044780ebc8601350f916d95a0ccd6be9b955c Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Sat, 29 Sep 2007 13:53:32 +0000 Subject: [PATCH] Fix to see both removable and hotpluggable devices --- pam_usb/tools/pamusb-conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pam_usb/tools/pamusb-conf b/pam_usb/tools/pamusb-conf index e712c34..075815d 100755 --- a/pam_usb/tools/pamusb-conf +++ b/pam_usb/tools/pamusb-conf @@ -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