1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/extras/cdrom_id/60-cdrom_id.rules
Harald Hoyer 2d01980f1a cdrom_id: only mark sr[0-9]* as ID_CDROM
we cannot be sure for xvd*
2010-05-04 09:09:32 +02:00

12 lines
316 B
Plaintext

# do not edit this file, it will be overwritten on update
ACTION=="remove", GOTO="cdrom_end"
SUBSYSTEM!="block", GOTO="cdrom_end"
KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
IMPORT{program}="cdrom_id --export $tempnode"
LABEL="cdrom_end"