Created
November 30, 2020 14:29
-
-
Save mrvdb/c2952cd2d4e050fce5a7490da976bbf2 to your computer and use it in GitHub Desktop.
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
# Rule to run a script when yubikey is inserted/removed | |
# Mostly to get gpg and ssh to behave properly | |
# There are signals this will be patched in gpg so this may be | |
# not needed anymore. | |
ACTION=="remove|add|change", \ | |
ENV{ID_VENDOR_ID}=="1050",ENV{ID_MODEL_ID}=="0116",ENV{ID_SERIAL_SHORT}=="0003022097", \ | |
RUN+="/usr/local/bin/yubikey-changed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment