[Asterisk-Users] auto 'modprobe wct1xxp' on startup?
Steven Critchfield
critch at basesys.com
Tue Oct 7 13:45:08 MST 2003
On Tue, 2003-10-07 at 15:30, john lawler wrote:
> Hi guys,
>
> Thanks for your answers on my two questions yesterday. That's exactly
> what I was looking for, sorry for not noticing it myself, but I'm still
> getting acclimated to Asterisk and even Linux--from what I see so far, I
> love it.
>
> I've got another one now. Since my Asterisk install and configuration
> is fairly stable at this point, I'm interested it ensuring that during
> the event of a power failure, when the power returns (or if the machine
> is manually restarted) that Asterisk will successfully load on the other
> side (automatically).
>
> I've used the provided asterisk startup script (which I moved to
> /etc/rc.d/init.d) and RedHat's 'chkconfig' to make sure that Asterisk is
> started on bootup, but the problem I'm having has to do w/ the wct1xxp
> module, I believe.
>
> When I want to start Asterisk manually, I just type 'modprobe wct1xxp'
> and my two T1 cards are correctly started and then I can start asterisk
> w/ the normal commands and everything works.
>
> But, when I come back from a restart, it appears that the Asterisk
> startup failed, and I think it's b/c the wct1xxp module is not loaded.
> What is the recommended way to ensure this happens? I've been reading
> and found that modprobe (on startup, it appears) uses /etc/modules.conf,
> and here's what mine looks like:
>
> alias eth0 e1000
> alias scsi_hostadapter megaraid
> alias usb-controller ehci-hcd
> alias usb-controller1 usb-uhci
> options torisa base=0xd0000
> alias char-major-196 torisa
> #post-install wcfxs /sbin/ztcfg
> #post-install wcfxsusb /sbin/ztcfg
> #post-install torisa /sbin/ztcfg
> #post-install tor2 /sbin/ztcfg
> #post-install wcfxo /sbin/ztcfg
> post-install wct1xxp /sbin/ztcfg
> #post-install wct4xxp /sbin/ztcfg
>
> (I commented out all of the modules I think I don't need, but it didn't
> work when they weren't commented out anyway). Does this have something
> to do w/ it? Do I need to add something to indicate that wct1xxp should
> be loaded on startup elsewhere?
All that file does is explain what to do when loading the module.
You can one of a couple of things. First you can edit the startup script
to try and load the modules. This way is easy, but I'm not sure it is a
good suggestion since it would try to reinsert the module when asterisk
is restarted.
You could make a new init.d file and link it in appropriately so that
the module loading happens before asterisk startup.
You could edit the /etc/modules file and list the appropriate drivers.
This may be a debianism, but I don't think so.
I hope you are getting the picture that there is a lot of ways to get
this type of functionality accomplished under real operating systems.
Have fun.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list