[lug] Automated USB Drive Backup

David L. Anselmi anselmi at anselmi.us
Mon Nov 5 18:55:52 MST 2007


karl horlen wrote:
[...]
> Would you care to share the detection part of that
> script if you still have it?  Obviously I would need
> to somehow modify it to look for a drive and not a
> music player.

In a udev rules file:

ACTION=="add", \
SUBSYSTEM=="usb", \
<other qualifiers to match your drive, like SYSFS attributes>, \
PROGRAM="do_cool_stuff"

Dave



More information about the LUG mailing list