From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_12_24,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from albatross.mail.pas.earthlink.net ([207.217.120.120] helo=albatross.prod.itd.earthlink.net) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 15joNs-000407-00 for gentoo-dev@cvs.gentoo.org; Wed, 19 Sep 2001 14:55:52 -0600 Received: from earthlink.net (1Cust234.tnt3.beaverton.or.da.uu.net [63.21.224.234]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id NAA12665 for ; Wed, 19 Sep 2001 13:55:11 -0700 (PDT) Message-ID: <3BA90659.4090609@earthlink.net> From: scott worley User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010913 X-Accept-Language: en-us MIME-Version: 1.0 To: gentoo-dev@cvs.gentoo.org Subject: Re: [gentoo-dev] handling of usb in init scripts References: <3BA8F9A9.1030603@earthlink.net> <20010919141125.C13715@cvs.gentoo.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Wed Sep 19 14:56:01 2001 X-Original-Date: Wed, 19 Sep 2001 13:55:53 -0700 X-Archives-Salt: 667f8ec0-005b-40e9-8c11-c41d3165f5f3 X-Archives-Hash: 94b9479ac2ce5b456731a8177ed4fbc9 Daniel Robbins wrote: >On Wed, Sep 19, 2001 at 01:01:45PM -0700, scott worley wrote: > >>Hi, >> >>Running rc6-r12. I'm no init expert but it appears the localmount >>script assumes usbcore support is compiled, not modularized. I rebuilt >>the kernel will all usb as modules so /proc/bus/usb does not exist until >>the usbcore module is loaded, therefore mounting of usbdevfs fails. I >>can change localmount to load usbcore but in the general case the script >>needs to detect whether usbcore is modularized or not so no error is >>generated by trying to load a module which doesn't exist. Should this >>be done in localmount or in the script which mounts the root filesystem r/w? >> > >See if this new localmount script works for you: >(attached) Let me know if it does. > >Best Regards, > > >------------------------------------------------------------------------ > >#!/sbin/runscript > >depend() { > need checkfs >} > >start() { > # Mount local filesystems in /etc/fstab. > ebegin "Mounting local filesystems" > mount -at nonfs,noproc,noncpfs,nosmbfs,noshm > eend $? > if [ -z "`grep usbdevfs /proc/filesystems`" ] > then > modprobe usbcore > fi > if [ -n "`grep usbdevfs /proc/filesystems`" ] && [ -e /proc/bus/usb ] && [ ! -e /proc/bus/usb/devices ] > then > ebegin "Mounting USB device filesystem" > mount -t usbdevfs usbdevfs /proc/bus/usb > eend $? > fi > #swap on loopback devices, and other weirdnesses > ebegin "Activating (possibly) more swap" > /sbin/swapon -a >/dev/null 2>&1 > eend > return >} > Daniel, It loads the usb module okay but the error message I'm seeing is because of the usbdevfs entry in /etc/fstab. Once I commented that fstab entry out then the init was flawless. I added usb-ohci and printer to /etc/modules and the system found the usb printer. Thanks, scott worley folokai@earthlink.net