From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11854 invoked from network); 25 May 1999 13:41:37 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 May 1999 13:41:37 -0000 Received: from henry.uncarved.co.uk ([212.38.67.155]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id IAA30424 for ; Tue, 25 May 1999 08:59:57 -0400 Received: (qmail 22536 invoked by uid 500); 25 May 1999 12:59:28 -0000 From: "Sean Hunter" Date: Tue, 25 May 1999 13:59:28 +0100 To: axp-list@redhat.com Subject: Re: RH 6.0: loading module at boot time? Message-ID: <19990525135928.V28883@henry.uncarved.co.uk> Mail-Followup-To: axp-list@redhat.com References: <374938D3.A95F96F8@art-render.com> <19990524174841.J28883@henry.uncarved.co.uk> <37498E9E.3C952A60@art-render.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <37498E9E.3C952A60@art-render.com>; from John Connett on Mon, May 24, 1999 at 06:38:38PM +0100 X-Operating-System: Linux henry.uncarved.co.uk 2.2.6-ac1 X-Organisation: Uncarved Systems Ltd. X-Public-Key-URL: http://fido.bfriars.ox.ac.uk/~sean/pubkey.asc X-MSMail-Priority: High X-Priority: 1 OK, well the kerneld/kmod mechanism (which looks at /etc/conf.modules) was primarily designed to load modules on demand. If you genuinely was just to load it at boot, you could do worse than to add "insmod plx" to your boot scripts. However, if your module provides a device, you could use something like this in your /etc/conf.modules alias char-major-73 plx ...for a char device with major number 73 or "block-major" for a block device. Then the "plx" module will be loaded when anyone accesses the device. If you have a daemon that talks to the device and you start that on boot, the module should be autoloaded. Good Luck! Sean On Mon, May 24, 1999 at 06:38:38PM +0100, John Connett wrote: > Sean Hunter wrote: > > > > If you say what it is, I could be more specifically helpful. > > > > alias scsi_hostadapter aic7xxx > > > > ...autoloads the aic7xxx module to drive an adaptec scsi card, > > for example. "modprobe -c" will give you a lot more examples. You > > could also look in the HOWTOs. > > > > If the module is used it will stay resident. > > It's a driver for a special porpose piece of hardware which doesn't > really fall into any of the obvious classes. Let's say it is called > "xyz", and the loadable module can be found in > /lib/modules/2.2.x-y/misc/plx.o. What I would like to achieve is the > same effect as: > > insmod xyz > > issued from a script somewhere early in the boot process, but instead > driven by a line in /etc/conf.modules. > -- > John Connett (jrc@art-render.com) > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >