From: greg@kroah.com Date: Thu, 11 Nov 2004 02:46:01 +0000 (-0800) Subject: [PATCH] add cdsymlinks.sh support to gentoo rules file. X-Git-Tag: 043~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=97a0e3c06e8a92af3cdf1110fe15cb693be0886a [PATCH] add cdsymlinks.sh support to gentoo rules file. --- diff --git a/etc/udev/udev.rules.gentoo b/etc/udev/udev.rules.gentoo index 08bc9f99d..2e2f89f26 100644 --- a/etc/udev/udev.rules.gentoo +++ b/etc/udev/udev.rules.gentoo @@ -12,6 +12,11 @@ # ########################################################### +# cdrom symlinks and other good cdrom naming +BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}" +BUS="scsi", KERNEL="sr[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}" +BUS="scsi", KERNEL="scd[a-z]", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}" + # devfs-names for ide-devices (uncomment only one) # /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"