Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17799 - hotplug fails to start due to usb.rc
Summary: hotplug fails to start due to usb.rc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Zach Welch (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 23:54 UTC by Dave Brondsema
Modified: 2003-03-19 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Brondsema 2003-03-18 23:54:27 UTC
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 Zach Welch (RETIRED) gentoo-dev 2003-03-19 00:32:15 UTC
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 Zach Welch (RETIRED) gentoo-dev 2003-03-19 22:35:19 UTC
right, i checked this in... it should be fixed.