Skip to content

Instantly share code, notes, and snippets.

@mhluska
Last active December 17, 2015 18:18
Show Gist options
  • Save mhluska/5651708 to your computer and use it in GitHub Desktop.
Save mhluska/5651708 to your computer and use it in GitHub Desktop.
Executes the script `sync-backup-drive-wrapper.sh` upon plugging in a USB drive.
ENV{ID_FS_LABEL_ENC}=="?*", ACTION=="add", SUBSYSTEMS=="usb", \
ATTRS{idVendor}=="1058", ATTRS{idProduct}=="0a78", \
RUN+="/home/username/bin/sync-backup-drive-wrapper.sh %k"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment