2013-04-23 11:39:56 +02:00
|
|
|
From: Robert Milasan <rmilasan@suse.com>
|
|
|
|
Date: Tue, 12 Feb 2013 09:16:23 +0000
|
|
|
|
Subject: create default links for primary cd_dvd drive
|
|
|
|
|
|
|
|
cdrom_id: created links for the default cd/dvd drive (bnc#783054).
|
|
|
|
---
|
|
|
|
rules/60-cdrom_id.rules | 5 ++++-
|
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
|
2013-08-02 07:26:48 +02:00
|
|
|
--- systemd-206.orig/rules/60-cdrom_id.rules
|
|
|
|
+++ systemd-206/rules/60-cdrom_id.rules
|
|
|
|
@@ -15,6 +15,9 @@ ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdr
|
2013-02-12 16:45:47 +01:00
|
|
|
# enable the receiving of media eject button events
|
|
|
|
IMPORT{program}="cdrom_id --lock-media $devnode"
|
|
|
|
|
|
|
|
-KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
|
|
|
|
+KERNEL=="sr0", ENV{ID_CDROM}=="1", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
|
|
|
|
+KERNEL=="sr0", ENV{ID_CDROM_CD_RW}=="1", SYMLINK+="cdrw", OPTIONS+="link_priority=-100"
|
|
|
|
+KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd", OPTIONS+="link_priority=-100"
|
|
|
|
+KERNEL=="sr0", ENV{ID_CDROM_DVD_RW}=="1", SYMLINK+="dvdrw", OPTIONS+="link_priority=-100"
|
|
|
|
|
|
|
|
LABEL="cdrom_end"
|