All of lore.kernel.org
 help / color / mirror / Atom feed
* Hot/Cold plug patch to fix USB Scanner/etc on boot issues
@ 2005-06-04 22:46 Kelly Price
  2005-06-05  0:22 ` Kelly Price
  0 siblings, 1 reply; 2+ messages in thread
From: Kelly Price @ 2005-06-04 22:46 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

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=83738

-- 
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com

[-- Attachment #2: usbrc-diff.patch --]
[-- Type: application/octet-stream, Size: 584 bytes --]

--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-05  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.