2009-04-17 00:29:56 +02:00
|
|
|
# do not edit this file, it will be overwritten on update
|
2006-09-05 03:43:14 +02:00
|
|
|
|
2010-04-12 16:52:41 +02:00
|
|
|
ACTION=="remove", GOTO="cdrom_end"
|
2010-04-12 01:12:23 +02:00
|
|
|
SUBSYSTEM!="block", GOTO="cdrom_end"
|
|
|
|
KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
|
|
|
|
ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
|
|
|
|
|
2011-06-18 20:54:47 +02:00
|
|
|
# unconditionally tag device as CDROM
|
2010-04-27 12:26:00 +02:00
|
|
|
KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
|
2011-06-18 20:54:47 +02:00
|
|
|
|
|
|
|
# media eject button pressed
|
2012-01-01 04:21:15 +01:00
|
|
|
ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
|
2011-06-18 20:54:47 +02:00
|
|
|
|
|
|
|
# import device and media properties and lock tray to
|
|
|
|
# enable the receiving of media eject button events
|
2012-01-01 04:21:15 +01:00
|
|
|
IMPORT{program}="cdrom_id --lock-media $devnode"
|
2010-04-12 01:12:23 +02:00
|
|
|
|
|
|
|
LABEL="cdrom_end"
|