summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-01-15 14:00:05 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-01-15 14:00:05 +0000
commitc0c7592589901c24d9440d68004569ee3580935f (patch)
tree255771ac5a6809ff5ed5354531fb349c5a92cc42 /udev-bugs/sys-fs/udev/files/udev.rules-103-r1
parentMade own copy of rules-file. (diff)
downloadzzam-c0c7592589901c24d9440d68004569ee3580935f.tar.gz
zzam-c0c7592589901c24d9440d68004569ee3580935f.tar.bz2
zzam-c0c7592589901c24d9440d68004569ee3580935f.zip
Removed second set of rules for cd-devices, solving Bug #158060.
svn path=/; revision=3
Diffstat (limited to 'udev-bugs/sys-fs/udev/files/udev.rules-103-r1')
-rw-r--r--udev-bugs/sys-fs/udev/files/udev.rules-103-r110
1 files changed, 3 insertions, 7 deletions
diff --git a/udev-bugs/sys-fs/udev/files/udev.rules-103-r1 b/udev-bugs/sys-fs/udev/files/udev.rules-103-r1
index bc1c84d..612fb51 100644
--- a/udev-bugs/sys-fs/udev/files/udev.rules-103-r1
+++ b/udev-bugs/sys-fs/udev/files/udev.rules-103-r1
@@ -33,14 +33,10 @@ KERNEL=="ircomm*", NAME="%k", GROUP="tty"
SUBSYSTEM=="block", GROUP="disk"
# 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"
+KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
+
+ENV{ID_CDROM}=="?*", GROUP="cdrom"
BUS=="scsi", KERNEL=="sg[0-9]*", ACTION=="add", DRIVERS=="sr", GROUP="cdrom"
-ENV{ID_CDROM}=="?*", PROGRAM="seq_node.sh %r %k cdrom", SYMLINK+="%c", GROUP="cdrom"
-ENV{ID_CDROM_CD_RW}=="?*", PROGRAM="seq_node.sh %r %k cdrw", SYMLINK+="%c"
-ENV{ID_CDROM_DVD}=="?*", PROGRAM="seq_node.sh %r %k dvd", SYMLINK+="%c"
-ENV{ID_CDROM_DVD_R}=="?*", PROGRAM="seq_node.sh %r %k dvdrw", SYMLINK+="%c"
# disk devices
KERNEL=="sd*", NAME="%k", GROUP="disk"