Hello
 
I used udev in order to detect "add/remove" events of mmc card in order
to mount/unmount /dev/mmcblk0p1.
So I added this udev rule
KERNEL="mmcblk[0-9]p[0-9]", NAME="%k",
PROGRAM="/etc/udev/scripts/mmc.sh" 
When the MMC card is inserted the mmc.sh is invoked (with ACTION =
"add") so I can  create the mount directory and mount it to
/dev/mmcblk0p1, but when the card is removed the script isn't invoked
and I can't unmount the device.
How can I detect removal event using udev or something else?
 
Thanks
 
PS: when I add ACTION=="add" in the begining of the rule, the script
isn't invoked even when the card is inserted.

_______________________________________________________________

Helmi KECHAOU 

Line Of Business Director - Multimedia

Groupe TELNET

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to