Udev problem with Fedora8
Hi all,
I am trying to automate my mp3 copying.I used udev to detect specifically my mp3 card (using USB card reader) and run a script.Although the my rule differentiates the mp3 card and the other thumb drives."mount" does not seem to work in my rule.Please find the udev rule I have written and the behavior ################################################################# Rule : ################################################################# # udev rules file by pravin for automation of mp3 copying in phone memory card SUBSYSTEM=="block" ,ATTR{size}=="3895296",NAME="Test", SYMLINK+="TestUSB" ,RUN+="/usr/bin/usb_script" ################################################################### Script :usb_script at /usr/bin ################################################################### mount /dev/TestUSB /home/pravin/USB touch /home/pravin/usb_script ################################################################### Behaviour when 4Gb mp3 card reader is connected ################################################################### sdb1 detection = yes Test detection = yes TestUSB detection = yes usb_script execution = yes (confirmed by execution of touch command) mount command execution = no ################################################################### Behaviour when 2Gb Thumb drive is connected ################################################################### sdb1 detection = yes Test detection = no (Since size attribute didn't match) TestUSB detection = no (Since size attribute didn't match) usb_script execution = no (Since size attribute didn't match) ################################################################### |
All times are GMT -5. The time now is 09:57 PM. |