patch for working around 2.2. UBS brokenness.
Here is a simple patch for /etc/hotplug/usb.agent that works around the way that USB on 2.2.1[89] identify the revision.
=================================RCS file: RCS/usb.agent,v retrieving revision 1.1
usb.agent +5 -0
@@ -109,6 +109,11 @@ exit 1 fi + # work around 2.2 brokenness + # munges the usb_bcdDevice such that it is a integer rather + # than a float: e.g. 1.0 become 0100 + PRODUCT=`echo $PRODUCT | sed -e "s+\.\([0-9]\)$+.\10+" -e "s/\.$/00/" \ + -e "s+/\([0-9]\)\.\([0-9][0-9]\)+/0\1\2+"` set `echo $PRODUCT | $AWK -F/ '{print "0x" $1, "0x" $2, "0x" $3 }'` '' usb_idVendor=$1 usb_idProduct=$2
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Fix is in CVS now -- thanks for the patch!
----- Original Message -----
From: "Ben Woodard" <[email protected]>
To: <[email protected]>
Sent: Friday, March 30, 2001 8:38 AM
Subject: patch for working around 2.2. UBS brokenness.
Quoted 21 lines
Here is a simple patch for
/etc/hotplug/usb.agentthat works around the way that USB on 2.2.1[89] identify the revision.=================================> RCS file: RCS/usb.agent,v retrieving revision 1.1
diff -u -r1.1 usb.agent03/30 16:02:02 renamed from 03/29 16:36:54 1.1 +5
-0@@ -109,6 +109,11 @@ exit 1 fi + # work around 2.2 brokenness + # munges the usb_bcdDevice such that it is a integer rather + # than a float: e.g. 1.0 become 0100 + PRODUCT=`echo $PRODUCT | sed -e "s+\.\([0-9]\)$+.\10+" -e "s/\.$/00/" \ + -e "s+/\([0-9]\)\.\([0-9][0-9]\)+/0\1\2+"` set `echo $PRODUCT | $AWK -F/ '{print "0x" $1, "0x" $2, "0x" $3 }'` '' usb_idVendor=$1 usb_idProduct=$2
Quoted 4 lines
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel