Last active
December 17, 2015 18:18
-
-
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.
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
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