Lupine wrote:
Here is /etc/udev/rules.d/24-cdrom.rules
KERNEL="sr0", SYMLINK="cdrom", GROUP="disk"
KERNEL="sr0", SYMLINK="dvd", GROUP="disk"
That's about the only thing I've added to the otherwise default setup of
LFS-SVN udev.
So, any reason it shouldn't be making those symlinks automatically???
The first thing I see is that you are doing an assignment (=) to instead
of a match (==) for the value of 'KERNEL'. The following line looks
better to me:
BUS=="scsi", KERNEL=="sr0", SYMLINK="cdrom", GROUP="disk"
But personally, I like this one (instead of two separate rules), or
similar for cdrom_id since cdsymlinks{,.sh} has gone byebye. I'm not
sure of the syntax for cdrom_id. As an aside, if it happens to be a
CDRW drive or DVD+-RW drive, the alternate symlinks cdrw and dvdrw are
created as well:
BUS=="scsi", KERNEL=="sr[0-9]*",
PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3}
%c{4} %c{5} %c{6}", GROUP="disk", OPTIONS="last_rule"
I have one CD-RW drive and one DVD+-RW drive and here is the result:
[EMAIL PROTECTED] installing]# ls /dev/{cd*,dvd*}
/dev/cdrom /dev/cdrom1 /dev/cdrw /dev/cdrw1 /dev/dvd /dev/dvdrw
[EMAIL PROTECTED] installing]#
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page