Try looking into udevtest, I don't remember the exact sytax, but it applies all of your udev rules to a particular /sys/ entry and prints the result to the console.
Another thing to be aware of with udev is the version. The one that came on my DM355 board was version 056, which doesn't support the RUN keyword. I had to upgrade to 057 to use the RUN keyword. (udev is currently somewhere around version 120). After downloading and cross compiling 057 (udev, udevd, udevinfo, udevtest, etc...) I was able to get my RUN rules to work. Hope this helps - Geoff -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Wu Sent: Tuesday, June 03, 2008 12:16 AM To: [email protected] Subject: How to know if a udev rule be executed? I write a custom udev rule to auto mount the SD card, but it do not mount the card when I plug in. I want to know if the rule be executed? My rule content is: RUN+="mount /dev/mmcblk0p1 /mnt" I write a simplest rule with no condition the rule is named /etc/udev/rules.d/60-local.rules _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
