Bug 17799 - hotplug fails to start due to usb.rc
Bug#: 17799 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: zwelch@gentoo.org Reported By: dave@brondsema.net
Component: Core system
URL: 
Summary: hotplug fails to start due to usb.rc
Keywords:  
Status Whiteboard: 
Opened: 2003-03-18 23:54 0000
Description:   Opened: 2003-03-18 23:54 0000
On line 145 of /etc/hotplug/usb.rc, shouldn't $COUNT -le 2 be $COUNT -lt 2 ?  
This is causing '/etc/init.d/hotplug start' to fail on my system.

To me, this makes sense since there are 2 directories, drivers and devices, so 
a $COUNT less than 2 would indicate failure, not a $COUNT less than or equal to 
2.

By the way, this is with hotplug-200020826.ebuild (I had the same problem with 
20020401-r1)

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/hotplug start
Actual Results:  
Starting USB and PCI hotplugging
hotplug script /etc/hotplug/usb.rc failed to start

Expected Results:  
should've succesfully started

using sh -x /etc/hotplug/usb.rc start, I was able to trace the the alleged bug 
to line 145 (see details section for proposed solution)

------- Comment #1 From Zach Welch (RETIRED) 2003-03-19 00:32:15 0000 -------
I'll fix this and the other outstanding hotplug issues right away.

Look for the fix in a new hotplug-20020826-r1.ebuild soon.

------- Comment #2 From Zach Welch (RETIRED) 2003-03-19 22:35:19 0000 -------
right, i checked this in... it should be fixed.