diff options
author | Christian Hesse <mail@eworm.de> | 2014-05-05 00:14:09 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-05-05 00:14:09 +0200 |
commit | 335f3380a9362adb9144c52915aceb4d9062c5bf (patch) | |
tree | 05d2fb6ccabe6526b13fcb00efaafddb333e8bab /udev | |
parent | 2fc7215d1416ddc9104a47a266f5125d3193307c (diff) | |
download | mkinitcpio-ykfde-335f3380a9362adb9144c52915aceb4d9062c5bf.tar.gz mkinitcpio-ykfde-335f3380a9362adb9144c52915aceb4d9062c5bf.tar.zst |
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.
Diffstat (limited to 'udev')
-rw-r--r-- | udev/20-ykfde.rules | 3 |
1 files changed, 2 insertions, 1 deletions
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" |