PDA

View Full Version : [ubuntu] udev rules aimed for USB drives only



xerox123
March 14th, 2011, 11:02 AM
I have written a udev rule.



RUN+=/.../.../example.sh


Now when i plug in a USB device this rule is run however, it also runs when i connect a dongle for WiFi. I only want this udev rule to run when i plug in any USB drive. Is there anyway i can specify that. Do i have to check this condition in the script?:confused:

andrewthomas
March 14th, 2011, 05:01 PM
You really shouldn't post the same question on multiple forums without waiting any time for a response.

http://www.linuxquestions.org/questions/linux-newbie-8/udev-rules-aimed-for-usb-drives-only-868440/