It's nice to be able to define the list of asterisk modules we want to load from the /etc/sysconfig/zaptel file rather than directly in /etc/init.d/zaptel. I'm using nufone and don't require anything but the ztdummy (is the rtc-based module better, anyone?), so that's what I've put here. These are based on zaptel-1.0-RC1. John --- zaptel-1.0/zaptel.init.ole 2003-07-14 14:25:44.000000000 -0500 +++ zaptel-1.0/zaptel.init 2004-08-18 16:43:04.000000000 -0500 @@ -27,9 +27,10 @@ RETVAL=0 -MODULES="torisa tor2 wct4xxp wct1xxp wcfxo wcfxs wcusb" - -RMODULES="wcusb wcfxs wcfxo wct1xxp wct4xxp tor2 torisa" if [ "${DEBUG}" = "yes" ]; then ARGS="debug=1" --- zaptel-1.0/zaptel.sysconfig.ole 2002-06-06 18:20:24.000000000 -0500 +++ zaptel-1.0/zaptel.sysconfig 2004-08-18 16:45:29.0000 -0500 @@ -1,2 +1,8 @@ TELEPHONY=yes #DEBUG=yes + +# define the modules we want loaded/unloaded automatically +#MODULES="torisa tor2 wct4xxp wct1xxp wcfxo wcfxs wcusb" +MODULES="ztdummy" +#RMODULES="wcusb wcfxs wcfxo wct1xxp wct4xxp tor2 torisa" +RMODULES="ztdummy"
Tobias Jönsson
2004-Aug-19 02:27 UTC
[Asterisk-Users] Zaptel module loading (was: Another small suggestion patch)
On Wed, 18 Aug 2004, John Morris wrote:> It's nice to be able to define the list of asterisk modules we want to > load from the /etc/sysconfig/zaptel file rather than directly in > /etc/init.d/zaptel. I'm using nufone and don't require anything but the > ztdummy (is the rtc-based module better, anyone?), so that's what I've > put here.Why don't you just add alias char-major-196 ztdummy to your /etc/modules.conf (modprobe.conf in linux 2.6)? Then your zaptel and ztdummy will be loaded when asterisk asks for them and you would not have to bother about loading them manually nor in your init scripts. Regards, Tobias J?nsson, Lund SE