Skip to content

Instantly share code, notes, and snippets.

@pilhokim
pilhokim / 10-usbstick.rules
Created January 9, 2014 12:44
USB media auto backup calling (not running) script. Specify the rule at /etc/udev/rules.d/10-usbstick.rules
SUBSYSTEMS=="usb",KERNEL=="sd[a-h]1",SYMLINK+="usbkey", RUN+="/home/pi/management/onInsertUsb.sh"
SUBSYSTEMS=="usb",KERNEL=="sd[a-h]1",ACTION=="remove", RUN+="/home/pi/management/onRemoveUsb.sh"