chiark / gitweb /
b3109f1d016785824229684763c9beed89dfc144
[elogind.git] / extras / cdrom_id / 60-cdrom_id.rules
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 KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
9 IMPORT{program}="cdrom_id --export $tempnode"
10
11 LABEL="cdrom_end"