Quote:
Originally Posted by twon
i just need to run a simple bash script that is going to call clamav to run a virus scan on the usb drive.
iv written a udev rule: BUS=="usb", SUBSYSTEM=="input", RUN+="/home/twon/scan.sh"
and saved that as file: 80-autorun.rules in /etc/udev/rules.d but i doesnt seem to be doing much
|
I don't think there is enough information here for UDEV to identify the USB device. Also, for a USB storage device, I don't think the SUBSYSTEM should be 'input'
There's a great tutorial on the net (use Google) and also there's one or more here on LQ, which will go a great distance towards showing you how to extract the info you need for a rule, and how to format the rule.
Sasha