From: Kelly Price <strredwolf@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Hot/Cold plug patch to fix USB Scanner/etc on boot issues
Date: Sun, 05 Jun 2005 00:22:30 +0000 [thread overview]
Message-ID: <7ff5668305060417225d2ef502@mail.gmail.com> (raw)
In-Reply-To: <7ff5668305060415467897ae4@mail.gmail.com>
On 6/4/05, Kelly Price <strredwolf@gmail.com> wrote:
> I had posted this patch on Gentoo's bugzilla, but apparently the
> maintainer didn't apply it yet. This one fixes the incorrect DEVICE
> path reported on USB devices plugged in before the system is booted,
> and "coldplugged" -- most notibly scanners.
>
> Gentoo's Bug entry is:
> http://bugs.gentoo.org/show_bug.cgi?idƒ738
--
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com
--- usb.rc-old 2005-03-01 19:48:06.000000000 -0500
+++ usb.rc 2005-02-24 20:51:14.000000000 -0500
@@ -94,7 +94,7 @@
PRODUCT="$(cat $devlink/../idVendor)/$(cat
$devlink/../idProduct)/$(cat $devlink/../bcdDevice)"
if [ -f $devlink/../../devnum ]
then
- devbus=$( ( echo -n 000 ; cat $devlink/../../devnum ) | grep -o ...\$ )
+ devbus=$( ( echo -n 000`echo $devlink| sed
's/^.*usb\([0-9]\+\)\/.*$/\1/'` ) | grep -o ...\$ )
devdev=$( ( echo -n 000 ; cat $devlink/../devnum ) | grep -o ...\$ )
DEVICE="/proc/bus/usb/$devbus/$devdev"
else
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
_______________________________________________
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
prev parent reply other threads:[~2005-06-05 0:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 22:46 Hot/Cold plug patch to fix USB Scanner/etc on boot issues Kelly Price
2005-06-05 0:22 ` Kelly Price [this message]
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=7ff5668305060417225d2ef502@mail.gmail.com \
--to=strredwolf@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).