You are not logged in.
Pages: 1
Hi Folks,
I'm aware this is covered extensively all over the place but I can not get it to work. I'm trying to get abcde to run when I insert a cd in my USB CD drive. here's my rule in rules.d
KERNEL=="sr0", SUBSYSTEM=="block", ENV{ID_CDROM_MEDIA_CD}=="1", RUN+="/usr/bin/cdautoinsert"
and below is the the first 2 entries from - udevadm info -a -n /dev/sr0|less
can anyone identify what I'm doing wrong?
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1d.7/usb3/3-3/3-3:1.0/host2/target2:0:0/2:0:0:0/block/sr0':
KERNEL=="sr0"
SUBSYSTEM=="block"
DRIVER==""
ATTR{alignment_offset}=="0"
ATTR{capability}=="119"
ATTR{discard_alignment}=="0"
ATTR{events}=="media_change eject_request"
ATTR{events_async}==""
ATTR{events_poll_msecs}=="-1"
ATTR{ext_range}=="1"
ATTR{inflight}==" 0 0"
ATTR{range}=="1"
ATTR{removable}=="1"
ATTR{ro}=="0"
ATTR{size}=="808696"
ATTR{stat}==" 0 0 0 0 0 0 0 0 0 0 0"
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb3/3-3/3-3:1.0/host2/target2:0:0/2:0:0:0':
KERNELS=="2:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sr"
ATTRS{device_blocked}=="0"
ATTRS{device_busy}=="0"
ATTRS{eh_timeout}=="10"
ATTRS{evt_capacity_change_reported}=="0"
ATTRS{evt_inquiry_change_reported}=="0"
ATTRS{evt_lun_change_reported}=="0"
ATTRS{evt_media_change}=="0"
ATTRS{evt_mode_parameter_change_reported}=="0"
ATTRS{evt_soft_threshold_reached}=="0"
ATTRS{iocounterbits}=="32"
ATTRS{iodone_cnt}=="0x3bfd"
ATTRS{ioerr_cnt}=="0x1e"
ATTRS{iorequest_cnt}=="0x3bfd"
ATTRS{max_sectors}=="240"
ATTRS{model}=="DRW-24B1ST j "
ATTRS{queue_depth}=="1"
ATTRS{queue_type}=="none"
ATTRS{rev}=="1.00"
ATTRS{scsi_level}=="0"
ATTRS{state}=="running"
ATTRS{timeout}=="30"
ATTRS{type}=="5"
ATTRS{vendor}=="TSSTcorp"
Offline
Pages: 1