Just tried to write the same rule for my SD Card reader when I plug the correct SD card into it.
Code:
ACTION=="add", BUS=="pci", ATTRS{idVendor}=="fc30", ATTRS{idProduct}=="3da9", RUN+="/home/pechenie/.bin/photobackup.py"
Why pci? Coz:
Code:
# lspci | grep SD
0a:09.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
Also, idVendor:idProduct got from automouting folder:
And finally:
Code:
# fdisk -l
Disk /dev/mmcblk0: 3999 MB, 3999268864 bytes
82 heads, 17 sectors/track, 5603 cylinders
Units = cylinders of 1394 * 512 = 713728 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 6 5604 3901440 b W95 FAT32
Any suggestions?
Bookmarks