[Asterisk-Dev] Re: Asterisk-Dev Digest, Vol 6, Issue 17

Aaron S. Joyner asjoyner at intrex.net
Wed Jan 5 06:33:13 MST 2005


Steven Critchfield wrote:

>On Tue, 2005-01-04 at 20:50 -0500, Giovanni Powell wrote:
>  
>
>>>u got some beef against modprobe?
>>>      
>>>
>>Not really, it just make more sense to me. Plus when the server
>>restarts it would be loaded with the rest of modules.(usb, firewire,
>>net, etc...)
>>
>>I just need to know if anyone knows how to do this. I wanna compile
>>all the modules I need including zaptel, with the kernel.
>>    
>>
>
>Covered on -users recently. It is a distribution specific problem.
>Rummage around in /etc and you will probably find a file that includes
>the autoloaded modules you already have. You should just have to add the
>modules to the list and all will be fine.
>  
>
In all fairness to the original poster, adding it to the appropriate 
distro-specific startup scripts (which presumably is what you're 
referencing for auto loaded modules from a file in /etc) doesn't answer 
his question, it just loads them with out him having to type in the 
command "modprobe <module>" in something like rc.local.  If he really 
for some reason wants to build it into the kernel, some hand-hacking 
will be required.

 From a more pragmatic stance though, this is highly unnecessary except 
for some very unusual environments.  The only reason I can think of that 
you'd want to add the associated modules directly into the kernel would 
be very-small embedded systems, where you don't have the storage space 
to have modprobe and all it's associated dependencies.  You may not even 
have the kernel compiled to use loadable modules if you're really trying 
to trim space.

For the original poster - unless you're working in such a minimalist 
environment, just plunk the modprobe commands in /etc/rc.local, or in 
the appropriate distribution-happy way (see /etc/modules.conf, 
/etc/modprobe.conf, or others, depending on your kernel version and 
distro).  It'll save you a lot of effort for no real functional gains.

-- 
Aaron S. Joyner
System Administrator
Intrex.net Internet Services
(919) 573-5488 x102




More information about the asterisk-dev mailing list