Skip to content

Instantly share code, notes, and snippets.

@khardix
Created March 3, 2016 13:56
Show Gist options
  • Save khardix/ecab6e28a0b85105d0ef to your computer and use it in GitHub Desktop.
Save khardix/ecab6e28a0b85105d0ef to your computer and use it in GitHub Desktop.
ACTION!="add|change", GOTO="yubico_end"
# Yubico Yubikey Neo
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0116|0407", \
ENV{ID_SECURITY_TOKEN}="1", RUN+="/bin/bash -c '/usr/bin/killall -9 scdaemon; sleep 1; /usr/bin/gpg2 --card-status'"
LABEL="yubico_end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment