* loading modules under 2.6.x
@ Gregory Nowak
` Charles Hallenbeck
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: speakup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all.
Under the 2.6.x series of kernels, most of my modules get loaded
automagically either during hardware detection, or as they are
needed. However, I have 2 modules, ip_nat_ftp and pcspkr, that don't
load automatically. I realize that I can create a script under
/etc/init.d/ that would modprobe them, but using /etc/modprobe.conf
looks like a much more elegant, and more proper solution. The problem
is, that having read the modprobe.conf man page, I see how to create
aliases, how to pass options to a module, and how to install/remove
modules using custom commands. I don't see a way to simply modprobe
for a module. The 2 things that I have tried, using alias, and the
install command, ended up either not working, or putting modprobe in a
loop.
So, would someone please be kind enough to tell me what I'm missing,
and what's the proper way to simply modprobe a module using 2.6.x
kernels and module init tools? BTW, I'm running debian if that makes a
difference. Thanks in advance for any help.
Greg
- --
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDtDIB7s9z/XlyUyARAoeRAJ9IadSTHC+puBx7GvvFSWIBUutycACgrKkA
0cUPIKfnBe42AULqnTG2Kew=
=vLwy
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: loading modules under 2.6.x
loading modules under 2.6.x Gregory Nowak
@ ` Charles Hallenbeck
` Luke Yelavich
` John G. Heim
` Sean McMahon
` Lorenzo Taylor
2 siblings, 2 replies; 6+ messages in thread
From: Charles Hallenbeck @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Greg,
When I first switched to Debian I really missed not having an rc.local
to put stuff like that in. So I created one. I called mine something
like "mystartup" and placed it in /etc/init.d, then ran the command
"update-rc.d" to create the symbolic links to execute it on entry to the
desired run levels, using a high priority number such as 99 for
instance.
Maybe there's a more elegant way. Maybe someone will tell us.
Chuck
--
The Moon is Waning Crescent (2% of Full)
But you can still get downloads from http://www.mhcable.com/~chuckh
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: loading modules under 2.6.x
` Charles Hallenbeck
@ ` Luke Yelavich
` John G. Heim
1 sibling, 0 replies; 6+ messages in thread
From: Luke Yelavich @ UTC (permalink / raw)
To: speakup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, Dec 30, 2005 at 06:37:21AM EST, Charles Hallenbeck wrote:
> Greg,
>
> When I first switched to Debian I really missed not having an rc.local
> to put stuff like that in. So I created one. I called mine something
> like "mystartup" and placed it in /etc/init.d, then ran the command
> "update-rc.d" to create the symbolic links to execute it on entry to the
> desired run levels, using a high priority number such as 99 for
> instance.
>
> Maybe there's a more elegant way. Maybe someone will tell us.
You can add the name of any modules you want loaded to /etc/modules.
- --
Luke Yelavich
GPG key: 0xD06320CE
(http://www.themuso.com/themuso-gpg-key.txt)
Email & MSN: themuso@themuso.com
ICQ: 18444344
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDtEvwjVefwtBjIM4RAtajAJ0W4dEtk3gfi9D5fSoiTm0FUfzgDgCg6/d2
AeM2D7KFZhG61xVcnUHiBck=
=x7Hs
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: loading modules under 2.6.x
` Charles Hallenbeck
` Luke Yelavich
@ ` John G. Heim
1 sibling, 0 replies; 6+ messages in thread
From: John G. Heim @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Your "mystartup" concept is fine. I mean, not only does it work but it's
not considered flakey or non-standard.
But there is a more elegant way to load a module. All you need to do is put
it in /etc/modules. If you cat /etc/modules it will tell you how.
I would have a "mystartup" script like yours and implement it theway you
did it but not for loading a module. In mine, I configure iptables, for
example. A line in it is:
iptables-restore /etc/firewall.rules
At 01:37 PM 12/29/2005, you wrote:
>Greg,
>
>When I first switched to Debian I really missed not having an rc.local
>to put stuff like that in. So I created one. I called mine something
>like "mystartup" and placed it in /etc/init.d, then ran the command
>"update-rc.d" to create the symbolic links to execute it on entry to the
>desired run levels, using a high priority number such as 99 for
>instance.
>
>Maybe there's a more elegant way. Maybe someone will tell us.
>
>Chuck
>
>--
>The Moon is Waning Crescent (2% of Full)
>But you can still get downloads from http://www.mhcable.com/~chuckh
>
>_______________________________________________
>Speakup mailing list
>Speakup@braille.uwo.ca
>http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
John G. Heim
jheim@math.wisc.edu
3-4189
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: loading modules under 2.6.x
loading modules under 2.6.x Gregory Nowak
` Charles Hallenbeck
@ ` Sean McMahon
` Lorenzo Taylor
2 siblings, 0 replies; 6+ messages in thread
From: Sean McMahon @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Assuming you have these modules in your kernel when you compiled it or when the
packager compiled it, you may use modconf as root to make a module automatically
load.modconf is a deb. you should also be able to do modprobe pcspkr. I.E. I
do modprobe speakup_sftsyn to load the software speech module for speakup.
----- Original M essage -----
From: "Gregory Nowak" <greg@romuald.net.eu.org>
To: <speakup@braille.uwo.ca>
Sent: Thursday, December 29, 2005 11:59 AM
Subject: loading modules under 2.6.x
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all.
>
> Under the 2.6.x series of kernels, most of my modules get loaded
> automagically either during hardware detection, or as they are
> needed. However, I have 2 modules, ip_nat_ftp and pcspkr, that don't
> load automatically. I realize that I can create a script under
> /etc/init.d/ that would modprobe them, but using /etc/modprobe.conf
> looks like a much more elegant, and more proper solution. The problem
> is, that having read the modprobe.conf man page, I see how to create
> aliases, how to pass options to a module, and how to install/remove
> modules using custom commands. I don't see a way to simply modprobe
> for a module. The 2 things that I have tried, using alias, and the
> install command, ended up either not working, or putting modprobe in a
> loop.
>
> So, would someone please be kind enough to tell me what I'm missing,
> and what's the proper way to simply modprobe a module using 2.6.x
> kernels and module init tools? BTW, I'm running debian if that makes a
> difference. Thanks in advance for any help.
>
> Greg
>
>
> - --
> web site: http://www.romuald.net.eu.org
> gpg public key: http://www.romuald.net.eu.org/pubkey.asc
> skype: gregn1
> (authorization required, add me to your contacts list first)
>
> - --
> Free domains: http://www.eu.org/ or mail dns-manager@EU.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFDtDIB7s9z/XlyUyARAoeRAJ9IadSTHC+puBx7GvvFSWIBUutycACgrKkA
> 0cUPIKfnBe42AULqnTG2Kew=
> =vLwy
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: loading modules under 2.6.x
loading modules under 2.6.x Gregory Nowak
` Charles Hallenbeck
` Sean McMahon
@ ` Lorenzo Taylor
2 siblings, 0 replies; 6+ messages in thread
From: Lorenzo Taylor @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Simply put the modules you want loaded in /etc/modules 1 to a line. For
example, my /etc/modules looks like:
<code>
# /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.
#ide-cd
ide-disk
ide-generic
#psmouse
speakup_dectlk
bttv tuner=39 radio=1 automute=0
</code>
Each module is modprobed with the options specified after its name. These
modules are also loaded before any init scripts, so you have access to them
fairly early in the boot process.
HTH,
Lorenzo
- --
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDtHLFG9IpekrhBfIRAhrWAJ9S9EbK69gJPB0mwJV4dKcNc5OFOACgkk8m
BSI3e1AbZP0XZZrJ0liRzxI=
=NIdF
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
loading modules under 2.6.x Gregory Nowak
` Charles Hallenbeck
` Luke Yelavich
` John G. Heim
` Sean McMahon
` Lorenzo Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).