Udev doesn't create symlink
Hy!
I would like to make a symlink and run a bash-script if a user attaches a new pendrive in a specific port.
Here is my udev rule file:
ACTION=="add", SUBSYSTEM=="usb", KERNEL=="1-1.4:1.0", DRIVER=="usb-storage", SYMLINK+="/dev/ext0"
ACTION=="add", SUBSYSTEM=="usb", KERNEL=="1-1.4:1.0", DRIVER=="usb-storage", RUN+="/mybin/usbhandler/pendrivehandler.sh"
My shell-script runs without any problem, but the symlink doesn't created. Have you any idea, what is my mistake?
(I tried them to put in one line, but it didn't work either.)
Thank you for your help. Have a nice day!
Ps.: I am using the newest Raspbian.
|