From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Schlemmer [c]" Date: Mon, 13 Dec 2004 20:35:41 +0000 Subject: ide-devfs.sh and Gentoo [u] Message-Id: <1102970141.11272.11.camel@nosferatu.lan> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-bi1SZqYkm8IRbp9GTsx4" List-Id: To: linux-hotplug@vger.kernel.org --=-bi1SZqYkm8IRbp9GTsx4 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, We have a problem in Gentoo that we use the group 'cdrw' for burners, but ide-devfs.sh assigns 'cdrom' to them. Below patch is for comments .. it uses cdsymlinks.sh to try and figure out if we have a burner or not .... ----- --- 1/udev-048/extras/ide-devfs.sh 2004-12-13 22:27:17.000000000 +0200 +++ 2/udev-048/extras/ide-devfs.sh 2004-12-13 22:29:06.000000000 +0200 @@ -36,6 +36,10 @@ if [ -z "$3" ] && [ -f /proc/ide/${1}/media ]; then MEDIA=3D`cat /proc/ide/${1}/media` if [ "${MEDIA}" =3D "cdrom" ]; then + if [ -n "`grep '^cdrw:' /etc/group`" ] && \ + [ -n "`"${0%/*}/cdsymlinks.sh" "$1" | grep 'rw' 2>/dev/n= ull`" ]; then + MEDIA=3D"cdrw" + fi echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/cd cdro= ms/cdrom`get_dev_number $1 cdrom` ${MEDIA} elif [ "${MEDIA}" =3D "floppy" ]; then echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/disc fl= oppies/floppy`get_dev_number $1 floppy`/disc ${MEDIA} ----- More info might be gotten from here: http://bugs.gentoo.org/show_bug.cgi?id=3D73660 Thanks, --=20 Martin Schlemmer --=-bi1SZqYkm8IRbp9GTsx4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBvf0dqburzKaJYLYRAt9UAJ4rR1Zj0F4VjTvqDpthZIAlKzmxaQCfYefo yKPT2qlScFWSQ7OEO/oxRlE= =mWtP -----END PGP SIGNATURE----- --=-bi1SZqYkm8IRbp9GTsx4-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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