Last active
August 18, 2016 00:49
-
-
Save lrvick/d1a5a8e6cf0eefda69d7 to your computer and use it in GitHub Desktop.
udev to kill/restart scdaemon on yubikey insertion for ssh/gpg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Yubico Yubikey | |
ATTRS{idVendor}=="1050", \ | |
ATTRS{idProduct}=="0010|0405|0110|0111|0116", \ | |
ENV{ID_SECURITY_TOKEN}="1", \ | |
RUN+="/bin/bash -c '/usr/bin/killall -9 scdaemon'", \ | |
TAG+="uaccess" | |
LABEL="yubico_end" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why
bash -c '/usr/bin/killall -9 scdaemon'
? That's pretty redundant.