From b8e22409f5c3717cdd2e9a1c5183c195202b7fcd Mon Sep 17 00:00:00 2001 From: Tharre Date: Sat, 29 Sep 2018 05:43:20 +0200 Subject: arch-system: add udev rule for scdaemon lockup --- arch-system/etc-yubikey.rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 arch-system/etc-yubikey.rules (limited to 'arch-system/etc-yubikey.rules') diff --git a/arch-system/etc-yubikey.rules b/arch-system/etc-yubikey.rules new file mode 100644 index 0000000..6d8238b --- /dev/null +++ b/arch-system/etc-yubikey.rules @@ -0,0 +1,13 @@ +# Yubico Yubikey +# +# This is a ugly hack to prevent scdaemon from locking up after suspend. +# Note that more civil methods, like gpgconf --kill scdaemon or just sending a +# normal TERM doesn't work. +# see https://wiki.gnupg.org/SmartCard#Known_problem_of_Yubikey +ATTRS{idVendor}=="1050", \ +ATTRS{idProduct}=="0010|0405|0110|0111|0116", \ +ENV{ID_SECURITY_TOKEN}="1", \ +RUN+="/usr/bin/killall -9 scdaemon", \ +TAG+="uaccess" + +LABEL="yubico_end" -- cgit v1.2.3-70-g09d2