Originally Posted by
mikewhatever
Thanks mike for the reply. But I still have some trouble getting it to work.
I checked the output of the lsusb -v command, and it's as follows
Code:
Bus 002 Device 007: ID 8564:1000
Device Descriptor:
bLength 18
..
..
idVendor 0x8564
idProduct 0x1000
So I created a new file as follows
Code:
IAMTubby@IAMTubby-Inspiron-1545:/etc/udev/rules.d$ ls
100-persistent-transcend.rules 70-persistent-cd.rules 70-persistent-net.rules README
IAMTubby@IAMTubby-Inspiron-1545:/etc/udev/rules.d$ cat 100-persistent-transcend.rules
ACTION=="add", ATTRS{idVendor}=="0x8564", ATTRS{idProduct}=="0x1000", RUN+="/home/IAMTubby/Desktop/run.sh"
My script is as follows
Code:
IAMTubby@IAMTubby-Inspiron-1545:~/Desktop$ cat run.sh
sleep 10
touch transcendfile.txt
I tried removing and inserting the pendrive few times, but the script doesn't seem to run as suggested by the ps output.
Please advise.
Thanks.
PS : Please find attached the output of my lsusb -v command. Have highlighted the details for my pendrive in blue which is 8564:1000
Bookmarks