chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a8bb2
)
[PATCH] udev - fix cdrom symlink rule
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Thu, 12 Feb 2004 06:28:47 +0000
(22:28 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:32:26 +0000
(21:32 -0700)
We only need to look at the device, not at the partitions.
etc/udev/udev.rules
patch
|
blob
|
history
diff --git
a/etc/udev/udev.rules
b/etc/udev/udev.rules
index 98d2ceccc785b6a224a5b53637f2be553f6e42fc..344304dd951397e67deeb13cb3e04ece3bd61c50 100644
(file)
--- a/
etc/udev/udev.rules
+++ b/
etc/udev/udev.rules
@@
-35,7
+35,7
@@
KERNEL="ttyUSB0", NAME="pl2303"
#KERNEL="tty*", NAME="vc/%n"
# if this is a ide cdrom, name it the default name, and create a symlink to cdrom
-BUS="ide",
PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
+BUS="ide",
KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
# device mapper creates its own device nodes so ignore these
KERNEL="dm-[0-9]*", NAME=""