Re: [SLUG] Loading a driver permanently

From: Mario Lombardo (mario@alienscience.com)
Date: Thu Aug 29 2002 - 17:13:23 EDT


Glen, modprobe and insmod in RH7.1 seem not be the same file. When I
run modprobe alone it returns with the shell prompt. When I run
insmod, it sends all kinds of toplevel information to the console,
stdout whatever, and it loads the driver successfully. In fact, I've
tried insmod w/o modprobe and it works just fine, so I'm sorry for
the confusion to any of you.

I'd really like to know what the line in /etc/modules.conf should
look like. I think rc is easier, but it doesn't seem like that would
be the correct route as it's not a daemon or process. Any thoughts?

/mario

>You should load it into an init script. You can either put it into a runlevel
>directory, e.g. /etc/rc3.d/ with a separate script name somthing like
>'S55advansys' (the number signifying the run order for that script during the
>runlevel change), or load it into rc.sysinit sometime after you've mounted
>your drives. All you'd have to do is this:
>
>#!/bin/bash
>...
>/sbin/modprobe advansys #probably all you really need
>/sbin/insmod advansys # probably redundant
>...
>
>remember that rmmod, insmod, and modprobe are the same binary file now with
>different names - have been for about 2-3 years (a lot of people don't
>realize this). Usually, a call to modprobe with the name of the module or its
>alias (from /etc/modules.conf) should load a module if it's not loaded, and
>remove it if it is.
>
>Many distros autoload anything in modules.conf at boot time - I think
>Mandrake does. But that's OK, I usually change just about everything about a
>system soon after loading anyway.
>
>If anything here doesn't work they way I said it does, I never said it ;)
>
>Glen
>
>
>
>On Wednesday 28 August 2002 01:46 am, you wrote:
>> I'm sure this is an easy question for you folks.
>>
>> I'm successfully loading a SCSI driver for my Advansys card in my
>> RH7.1 system. I use the following manual method:
>>
>> PROMPT> modprobe advansys
>> PROMPT> insmod advansys
>>
>> Without adding this to an rc file, how do I have this load
>> automagically? /etc/modules.conf?? It seemed not to work last time,
>> but maybe it was the syntax.
>>
>> /mario



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:22:41 EDT