Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to load modules with 'insmod -f' at startup?

135 views
Skip to first unread message

Jens Mayer

unread,
Feb 15, 2002, 8:30:03 AM2/15/02
to
Hi,

I have to load a module which is available as a binary
only to get my USB-webcam working. Doing this manually
with 'insmod -f modulename.o' is not problem, but I'd
like to have this automated at startup.

What is the best or "most standard" way to do so?

Regards,
Jens

PS: Using Woody.

--
"\"Hello World!\" 17 errors, 31 warnings, continue (Y/N)?

Oliver Kastner

unread,
Feb 15, 2002, 9:29:19 AM2/15/02
to

That's a job for init!
All stuff to be done at startup is defined in scripts located in
/etc/init.d. Write your own script, and place it there (as root...).
Don't forget to place links to your skript into the /etc/rc{runlevel}.d
-dirs, according to the runlevel you want your script to be executed.
Read the /etc/init.d/README and the init-manpage for more information.

Olli

--

Elmar Fasel

unread,
Feb 15, 2002, 4:01:20 PM2/15/02
to
On Fri, 15 Feb 2002 14:30:03 +0100, Jens Mayer wrote:

> I have to load a module which is available as a binary only to get my
> USB-webcam working. Doing this manually with 'insmod -f modulename.o' is
> not problem, but I'd like to have this automated at startup.
>
> What is the best or "most standard" way to do so?

elmar@julian:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a #, and everything on the line after them are ignored.
# rtl8139
8139too
sb
lm75
ide-scsi
elmar@julian:~$

and see:
$ man modules

:-)

Regards,
Elmar
--
Elmar...@web.de

Jens Mayer

unread,
Feb 15, 2002, 6:09:41 PM2/15/02
to
* Fri, 15 Feb 2002 22:01:20 +0100, Elmar Fasel wrote:

>> I have to load a module which is available as a binary only to get my
>> USB-webcam working. Doing this manually with 'insmod -f modulename.o' is
>> not problem, but I'd like to have this automated at startup.
>>
>> What is the best or "most standard" way to do so?

> elmar@julian:~$ cat /etc/modules
> # /etc/modules: kernel modules to load at boot time.

[...]

> and see:
> $ man modules

You can't use the force-option there, can you? ;)

Regards,
Jenne

--
Maintainer's Motto: If we can't fix it, it ain't broke.

Elmar Fasel

unread,
Feb 15, 2002, 7:02:54 PM2/15/02
to
On Sat, 16 Feb 2002 00:09:41 +0100, Jens Mayer wrote:

>>> I have to load a module which is available as a binary only to get my
>>> USB-webcam working. Doing this manually with 'insmod -f modulename.o'
>>> is not problem, but I'd like to have this automated at startup.
>>>
>>> What is the best or "most standard" way to do so?
>
>> elmar@julian:~$ cat /etc/modules
>> # /etc/modules: kernel modules to load at boot time.
> [...]
>
>> and see:
>> $ man modules
>
> You can't use the force-option there, can you? ;)

Oh, didn't thought about that. No, I don't think you can use it there, at
least I don't know how.

Regards,
Elmar
--
Elmar...@web.de

0 new messages