I want to create a udev rule which calls an arbitrary script when plugging in my hard disk. To add a new rule, I created a file "11-hd.rules" in /etc/udev/rules.d, with the following content:

KERNEL=="sd?", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="6830", ACTION=="add", RUN+="/usr/bin/terminal"


I also tested it with

udevadm test


and in the last line i get

run: '/usr/bin/terminal'

So i just wanted to test whether it would start the (xfce) terminal and it seems to work. But actually nothing happens. I tried to add the rule in the existing file 10-local.rules but with the same result. I also modified my rule and omitted the ATTRS properties, but it didn't help either.

I'm using Archlinux, is there some other configuration, which overrides the udev rules?

link|improve this question
I copied the script into /usr/local/bin and now it works! – plk Jul 15 '11 at 6:39
feedback

migrated from stackoverflow.com Jun 25 '11 at 2:18

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.