Hi All,
I have written a rule as below.
SUBSYSTEM=="usb", ACTION=="add", RUN="/tmp/test.pl"
Problem 1:
when i connect USB device, i see that my script "/tmp/test.pl" is getting executed twice. (i observed this by logging message in log file)
Problem 2: I am trying to mount the USB device when connected, from script '/tmp/test.pl" invoked from udev rule, by identifying device from "/proc/diskstats" o/p (last line has the device information). Even though /proc/diskstats list the new parition for example (/dev/sdd) and i mount it like "mount /dev/sdd /tmp/mnt" but it does not worked, i observed that "/dev/sdd" is not created till "/tmp/test.pl" script is finished execution.
please help me.
Thanks in advance.
-csegau
|