linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udev - fix cdrom symlink rule
@ 2004-02-08 15:24 Kay Sievers
  2004-02-11 22:30 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2004-02-08 15:24 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 60 bytes --]

We only need to look at the device, not at the partitions.


[-- Attachment #2: 02-cdrom-symlink.patch --]
[-- Type: text/plain, Size: 590 bytes --]

===== etc/udev/udev.rules 1.26 vs edited =====
--- 1.26/etc/udev/udev.rules	Thu Jan 15 22:42:58 2004
+++ edited/etc/udev/udev.rules	Sun Feb  8 16:03:06 2004
@@ -35,7 +35,7 @@
 #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=""

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] udev - fix cdrom symlink rule
  2004-02-08 15:24 [PATCH] udev - fix cdrom symlink rule Kay Sievers
@ 2004-02-11 22:30 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-02-11 22:30 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Feb 08, 2004 at 04:24:35PM +0100, Kay Sievers wrote:
> We only need to look at the device, not at the partitions.

Applied, thanks.

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-11 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-08 15:24 [PATCH] udev - fix cdrom symlink rule Kay Sievers
2004-02-11 22:30 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).