On 9/13/05, Matthew Burgess <[EMAIL PROTECTED]> wrote: > # Create the /dev/cdrom symlink. > > BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", > RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
I'm sorry if this has been suggested before and there's a major fault in it, but the above line only works if you have one cdrom installed. If you have multiple drives, only the last one gets the symlink. A very simple fix is to have udev add a number suffix to the symlink. This is done with the %e variable, i.e.: BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom%e" Then you'd get /dev/cdrom, /dev/cdrom1, etc. For me this is nice since I have a couple of drives. I think I found this in the manpage. Again, sorry if this is old and there's a major fault in it. I just thought it was nice. Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page