]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/extras/cdrom_id/60-cdrom_id.rules
configure: show ROOTPREFIX in firmware path option help text
[thirdparty/systemd.git] / src / extras / cdrom_id / 60-cdrom_id.rules
CommitLineData
55d8f5e2 1# do not edit this file, it will be overwritten on update
e136a336 2
4b06c409 3ACTION=="remove", GOTO="cdrom_end"
5c5ebde7
KS
4SUBSYSTEM!="block", GOTO="cdrom_end"
5KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
6ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
7
b20fd3cb 8# unconditionally tag device as CDROM
2d01980f 9KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
b20fd3cb
KS
10
11# media eject button pressed
220893b3 12ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
b20fd3cb
KS
13
14# import device and media properties and lock tray to
15# enable the receiving of media eject button events
220893b3 16IMPORT{program}="cdrom_id --lock-media $devnode"
5c5ebde7
KS
17
18LABEL="cdrom_end"