From 335f3380a9362adb9144c52915aceb4d9062c5bf Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2014 00:14:09 +0200 Subject: fix udev rule Yubikey emits a lot of events when inserted and queried. We do have to act on insert, so make sure to match the correct case. --- udev/20-ykfde.rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'udev') diff --git a/udev/20-ykfde.rules b/udev/20-ykfde.rules index 54cd1c2..641192b 100644 --- a/udev/20-ykfde.rules +++ b/udev/20-ykfde.rules @@ -1,4 +1,5 @@ # do challenge response with Yubikey II and try to answer # password agent -ACTION=="add", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111", \ +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ + ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111", \ RUN+="/usr/lib/udev/ykfde" -- cgit v1.2.3-70-g09d2