What I plan to achieve:
I am trying to automatically run a script when a certain SD card is inserted.
FACTS:
a. Script I plan to run is in /home/vivek/Desktop/Message.sh and has the following script in it. Its permissions are set as being an executable file:
#!/bin/sh
echo "Card is now inserted"
b. Under /etc/udev/rules.d my rules file is called 10-local.rules and has the following rule in it:
ENV{ID_FS_UUID}=="C097-C12A", ACTION == "add", RUN+="/bin/sh /home/vivek/Desktop/Message.sh"
c. The ENV{ID_FS_UUID} of my SD card is detected by udevadm is as follows:
d. My rules file in /etc/udev/rules.d/ is being processed as found by 'udevadm test' pictured below:
ISSUE: When I insert my SD card it mounts fine. But my SCRIPT NEVER GETS EXECUTED! Any help is appreciated.
Cheers