Skip to content

Instantly share code, notes, and snippets.

@mrvdb
Created November 30, 2020 14:29
Show Gist options
  • Save mrvdb/c2952cd2d4e050fce5a7490da976bbf2 to your computer and use it in GitHub Desktop.
Save mrvdb/c2952cd2d4e050fce5a7490da976bbf2 to your computer and use it in GitHub Desktop.
# 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