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?