From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John L. Fjellstad" Date: Thu, 15 Jan 2004 14:23:55 +0000 Subject: udev.rules.devfs patch Message-Id: <200401151523.58821.john-hotplug@fjellstad.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_7JqBAgD6BQ3hZYt" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_7JqBAgD6BQ3hZYt Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Here is a patch for udev.rules.devfs to make it closer to devfs layout. Basically, added discs/disc? directories, and the cdrom directory =2D --=20 John L. Fjellstad web: http://www.fjellstad.org/ Quis custodiet ipsos custodes =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iEYEARECAAYFAkAGon4ACgkQkz0vhQtHHRhGlACgyGxHvvwnhlHsmTl11C32NHkB 1WwAoMBdiMwkWmtg7FKkDTOc+QYRGltt =3DmOcE =2D----END PGP SIGNATURE----- --Boundary-00=_7JqBAgD6BQ3hZYt Content-Type: text/x-diff; charset="utf-8"; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch" --- udev.rules.devfs.orig 2004-01-15 15:14:53.000000000 +0100 +++ udev.rules.devfs 2004-01-15 15:19:49.000000000 +0100 @@ -16,11 +16,19 @@ # If this is not a partition, it will result in 'disc' # +# if this is an ide cdrom, put it in the cdroms directory and create symlinks +# first matching rule decides the name +BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="cdroms/cdrom%m", SYMLINK="cdrom dvd" + # ide block devices -BUS="ide", id="0.0", NAME="ide/host0/bus0/target0/lun0/%D" -BUS="ide", id="0.1", NAME="ide/host0/bus0/target1/lun0/%D" -BUS="ide", id="1.0", NAME="ide/host0/bus1/target0/lun0/%D" -BUS="ide", id="1.1", NAME="ide/host0/bus1/target1/lun0/%D" +BUS="ide", id="0.0", NAME="ide/host0/bus0/target0/lun0/%D", SYMLINK="discs/disc0/%D" +BUS="ide", id="0.1", NAME="ide/host0/bus0/target1/lun0/%D", SYMLINK="discs/disc1/%D" +BUS="ide", id="1.0", NAME="ide/host0/bus1/target0/lun0/%D", SYMLINK="discs/disc2/%D" +BUS="ide", id="1.1", NAME="ide/host0/bus1/target1/lun0/%D", SYMLINK="discs/disc3/%D" + +# scsi block devices +BUS="scsi", id="0:0:0:0", NAME="scsi/host0/bus0/target0/lun0/%D", SYMLINK="discs/disc4/%D" +BUS="scsi", id="0:0:0:1", NAME="scsi/host0/bus0/target0/lun0/%D", SYMLINK="discs/disc5/%D" # md block devices KERNEL="md[0-9]*", NAME="md/%n" @@ -49,13 +57,13 @@ KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k" # loop devices -KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k" +KERNEL="loop[0-9]*", NAME="loop/%n" # ramdisks -KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k" +KERNEL="ram[0-9]*", NAME="rd/%n" # framebuffer devices -KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k" +KERNEL="fb[0-9]*", NAME="fb/%n" # misc KERNEL="rtc", NAME="misc/%k", SYMLINK="%k" --Boundary-00=_7JqBAgD6BQ3hZYt-- ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel