]>
Commit | Line | Data |
---|---|---|
1 | # do not edit this file, it will be overwritten on update | |
2 | ||
3 | ACTION=="remove", GOTO="cdrom_end" | |
4 | SUBSYSTEM!="block", GOTO="cdrom_end" | |
5 | KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end" | |
6 | ENV{DEVTYPE}!="disk", GOTO="cdrom_end" | |
7 | ||
8 | # unconditionally tag device as CDROM | |
9 | KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1" | |
10 | ||
11 | # media eject button pressed | |
12 | ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end" | |
13 | ||
14 | # import device and media properties and lock tray to | |
15 | # enable the receiving of media eject button events | |
16 | IMPORT{program}="cdrom_id --lock-media $devnode" | |
17 | ||
18 | LABEL="cdrom_end" |