SOURCES: udev.rules - fixes for cdrom/dvd handling
freetz
freetz at pld-linux.org
Wed May 10 20:38:35 CEST 2006
Author: freetz Date: Wed May 10 18:38:35 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fixes for cdrom/dvd handling
---- Files affected:
SOURCES:
udev.rules (1.36 -> 1.37)
---- Diffs:
================================================================
Index: SOURCES/udev.rules
diff -u SOURCES/udev.rules:1.36 SOURCES/udev.rules:1.37
--- SOURCES/udev.rules:1.36 Tue May 2 21:00:32 2006
+++ SOURCES/udev.rules Wed May 10 20:38:30 2006
@@ -35,16 +35,17 @@
# all block devices
SUBSYSTEM=="block", GROUP="disk"
+ENV{PHYSDEVBUS}!="ide", GOTO="ide_end"
# cdrom symlinks and other good cdrom naming
BUS=="ide", KERNEL=="hd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
BUS=="scsi", KERNEL=="sr[0-9]*", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
BUS=="scsi", KERNEL=="scd[a-z]", ACTION=="add", IMPORT="cdrom_id --export $tempnode"
-ENV{ID_CDROM_CD_R}=="?*", GROUP="cdwrite"
-ENV{ID_CDROM_CD_RW}=="?*", GROUP="cdwrite"
-ENV{ID_CDROM_DVD}=="?*", GROUP="disk"
-ENV{ID_CDROM_DVD_R}=="?*", GROUP="cdwrite"
-ENV{ID_CDROM}=="?*", GROUP="disk"
+ENV{ID_CDROM}=="?*", SYMLINK+="cdrom", GROUP="disk"
+ENV{ID_CDROM_CD_RW}=="?*", SYMLINK+="cdrw", GROUP="cdwrite"
+ENV{ID_CDROM_DVD}=="?*", SYMLINK+="dvd", GROUP="disk"
+ENV{ID_CDROM_DVD_R}=="?*", SYMLINK+="dvdrw", GROUP="cdwrite"
+LABEL="ide_end"
# disk devices
KERNEL=="sd*", NAME="%k", GROUP="disk"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/udev.rules?r1=1.36&r2=1.37&f=u
More information about the pld-cvs-commit
mailing list