I'm trying to run an shell script, if a special usb device is connected to my raspberry pi. I have tried to follow following description:
http://ubuntuforums.org/archive/index.php/t-502864.html
I created a file named 85-my_rule.rules with the content: ACTION=="add",SUBSYSTEM=="usb_device",SYSFS{idVendor}=="ffff",SYSFS{idProduct}=="1000",RUN+="/usr/bin/usbdevinserted"
My script usbdevinserted has the following content: echo "Dies ist ein Text" >>/tmp/text
If I execute this script on the shell, the text file named text ist created with the content "Dies ist ein Text", so the script works fine. But it seems not to be executed, if I connect an usb device to the rasppi. So I think, the error is in my rule, but I cannot found it. Can anyone help me please?
Greetings, Andreas