[Pcsclite-cvs-commit] r2712 - /trunk/Drivers/ccid/src/pcscd_ccid.rules
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Dec 10 13:43:33 UTC 2007
Author: rousseau
Date: Mon Dec 10 13:43:32 2007
New Revision: 2712
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2712
Log:
wait until the field bInterfaceProtocol is created. Should solve the
hotplug problem on Ubuntu 7.10
Thanks to OpenCT for the code
Modified:
trunk/Drivers/ccid/src/pcscd_ccid.rules
Modified: trunk/Drivers/ccid/src/pcscd_ccid.rules
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/pcscd_ccid.rules?rev=2712&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/pcscd_ccid.rules (original)
+++ trunk/Drivers/ccid/src/pcscd_ccid.rules Mon Dec 10 13:43:32 2007
@@ -5,6 +5,12 @@
# If not adding the device, go away
ACTION!="add", GOTO="pcscd_ccid_rules_end"
+
+# last file created by the kernel, if this is present everything should be
+WAIT_FOR_SYSFS="bInterfaceProtocol"
+
+# sleep for 100ms - the wait_for_sysfs might not be enough
+PROGRAM="/bin/sleep 0.1"
# Kobil mIDentity
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch"
More information about the Pcsclite-cvs-commit
mailing list