[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

USB2 loading in miniroot



the miniroot has a typo in the linuxrc which causes knoppix4.0.2
to not load the usb2 driver.  (don't know quite how far back it goes).

Basically, the problem is that it inserts the string 'ehci-hcd.ko'
into the '$USB2' variable before it does the 'nousb2' check, then
it appends the .ko suffix again when it uses the result
((
   for i in $USB2 uhci-hcd ohci-hcd; do
test -f /modules/scsi/$i.ko && $INSMOD /modules/scsi/$i.ko >/dev/null 2>&1 && FOUNDUSB="yes"
   done
))

In testing the patch, my roommate noticed that there are two consecutive 'for's in the tracking message (no idea how long that typo's been in their either).


--
Stephen Samuel +1(604)450-0066             samnospam@bcgreen.com
		   http://www.bcgreen.com/
  Powerful committed communication. Transformation touching
    the jewel within each person and bringing it to light.

--- linuxrc	2006/01/18 06:44:51	1.1
+++ linuxrc	2006/01/18 21:21:21
@@ -138,7 +138,7 @@
 case "$CMDLINE" in *fromdvd*) FROMDVD="yes"; ;; esac
 case "$CMDLINE" in *idecd*|*atapicd*) IDECD="yes"; ;; esac
 case "$CMDLINE" in *noideraid*) NOIDERAID="yes"; ;; esac
-USB2="ehci-hcd.ko"
+USB2="ehci-hcd"
 case "$CMDLINE" in *nousb2*) USB2=""; ;; esac
 
 KNOPPIX_DIR="KNOPPIX"
@@ -266,7 +266,7 @@
 
 # Check for USB, use modules on bootfloppy first
 if test -z "$NOUSB"; then
-echo -n "${CRE}${BLUE}Checking for for USB...${NORMAL}"
+echo -n "${CRE}${BLUE}Checking for USB...${NORMAL}"
 if test -f /modules/scsi/usbcore.ko 2>/dev/null; then
 $INSMOD /modules/scsi/usbcore.ko >/dev/null 2>&1
 FOUNDUSB=""

Reply to: