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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97a0e3c06e8a92af3cdf1110fe15cb693be0886a;p=systemd [PATCH] add cdsymlinks.sh support to gentoo rules file. --- diff --git a/etc/udev/udev.rules.gentoo b/etc/udev/udev.rules.gentoo index 08bc9f99..2e2f89f2 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}"