summaryrefslogtreecommitdiff
path: root/etc/udev/udev.rules
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-01-06 01:11:15 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:14 -0700
commit6a827072275a28798ac4c26ee166b03a145f4174 (patch)
tree77d74db01d48321dcfc881a0cd2e6fc7991b00ea /etc/udev/udev.rules
parent843d1a84b9be2b3e11f26186fee24676f5dc3f53 (diff)
[PATCH] add cdrom rule for ide cdrom.
Rule came from Kay
Diffstat (limited to 'etc/udev/udev.rules')
-rw-r--r--etc/udev/udev.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/udev/udev.rules b/etc/udev/udev.rules
index 06d5842c2a..b206503e15 100644
--- a/etc/udev/udev.rules
+++ b/etc/udev/udev.rules
@@ -46,4 +46,7 @@ REPLACE, KERNEL="ttyUSB0", NAME="pl2303"
#REPLACE, KERNEL="ttyS*", NAME="tts/%n"
#REPLACE, KERNEL="tty*", NAME="vc/%n"
+# if this is a ide cdrom, name it the default name, and create a symlink to cdrom
+CALLOUT, BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", ID="cdrom", NAME="%k", SYMLINK="cdrom"
+