From: "Martin Schlemmer [c]" <azarah@nosferatu.za.org>
To: linux-hotplug@vger.kernel.org
Subject: ide-devfs.sh and Gentoo [u]
Date: Mon, 13 Dec 2004 20:35:41 +0000 [thread overview]
Message-ID: <1102970141.11272.11.camel@nosferatu.lan> (raw)
[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]
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=`cat /proc/ide/${1}/media`
if [ "${MEDIA}" = "cdrom" ]; then
+ if [ -n "`grep '^cdrw:' /etc/group`" ] && \
+ [ -n "`"${0%/*}/cdsymlinks.sh" "$1" | grep 'rw' 2>/dev/null`" ]; then
+ MEDIA="cdrw"
+ fi
echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/cd cdroms/cdrom`get_dev_number $1 cdrom` ${MEDIA}
elif [ "${MEDIA}" = "floppy" ]; then
echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/disc floppies/floppy`get_dev_number $1 floppy`/disc ${MEDIA}
-----
More info might be gotten from here:
http://bugs.gentoo.org/show_bug.cgi?id=73660
Thanks,
--
Martin Schlemmer
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-12-13 20:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-13 20:35 Martin Schlemmer [c] [this message]
2004-12-13 20:54 ` ide-devfs.sh and Gentoo [u] Stefan Schweizer
2004-12-13 21:12 ` Martin Schlemmer [c]
2004-12-13 21:26 ` Stefan Schweizer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1102970141.11272.11.camel@nosferatu.lan \
--to=azarah@nosferatu.za.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.