Dan Nicholson wrote:
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.
Hmm, good catch. There's a variety of methods used in the various
distros rules file that ships with udev. The redhat ones in particular
might be worth investigation as they'll correctly symlink to 'cdrom%e',
'cdwriter%e', 'dvdwriter%e' dependent on the features of the device.
Regards,
Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page