Skip to contentSkip to conversation

udev - fix cdrom symlink rule

PATCH Applied Kay Sievers 2 participants 2 messages Feb 8, 2004 – Feb 11, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev - fix cdrom symlink rule

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

===== etc/udev/udev.rules 1.26 vs edited =====

etc/udev/udev.rules +1 -1
@@ -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=""
Applied
#1 lore raw
Quoted 1 line · Kay Sievers

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_id56&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel