Lonnie and Tom

thank you for your replies.

I modified /mnt/kd/rc.conf as suggested by adding

MODOPTS="wctdm:debug=1"

After rebooting, the /etc/rc.conf file has soaked up the change as expected.

There was still no change to /etc/modprobe.conf.

Debugging was not enabled.  I verified this by making calls whilst
tailing /var/log/messages.  If I set /sys/module/wctdm/parameters/debug
to contain "1" (by typing 'echo 1 > debug') debugging is turned on and I
get log entries when a call is started or stopped over PSTN. The problem
with this is obviously that sys is not persistent and I need a solution
which is sticky.

Any suggestions gratefully received.

A copy of /etc/rc.conf follows:

Thanks
Mart

DOMAIN=xyz.co.uk
HOSTNAME=pbx
TIMEZONE=GB
EXTIF=eth0
EXTIP="192.168.0.3"
EXTNM="255.255.255.0"
EXTGW="192.168.0.1"
DNS="192.168.0.1"
INTIP=192.168.101.1
INTNM=255.255.255.0
DMZTYPE=extonly
PPPOEKERNEL="yes"
FWVERS="astfw"
DENYACT="DROP"
NTPSERVS="us.pool.ntp.org"
NOPRIOHOSTSRC=
NOPRIOHOSTDST=
NOPRIOPORTSRC=
NOPRIOPORTDST=
ADNAME="AstLinux PBX"
MODOPTS="wctdm:debug=1"
AUTOMODS="rtc 3c59x typhoon tulip eepro100 natsemi forcedeth
8139cp 8139too via-rhine pcnet32 acenic e1000 ns83820 r8169 tg3"
ZAPMODS="wctdm"
ASTBACK_PATHS="/etc/asterisk/* /var/spool/asterisk/voicemail/*
/mnt/kd/rc.conf"
ASTBACK_FILE="/tmp/backup.tar.gz"
FTPD=inetd
TFTPD=inetd
HTTPDIR="/tftpboot"
HTTPUSER="nobody"
HTTPCGI="no" # yes|no to enable CGI (just like for HTTPS)
HTTPSDIR="/stat/var/www" # Define the location to serve HTTPS from
HTTPSCGI="yes" # Whether to enable CGI in the above path
HTTPSCERT="/etc/ssl/mini_httpd.pem" # Path to the https certificate
HTTPSUSER="root" #user to run HTTPS under
ISSUE="This is \n\ (\s \m \r) \t"
NETISSUE="WARNING!!!
This system is solely for the use of authorized users for official
purposes. You have no expectation of privacy in its use and to ensure
that the system is functioning properly, individuals using this computer
system are subject to having all of their activities monitored and
recorded by system personnel. Use of this system evidences an express
consent to such monitoring and agreement that if such monitoring reveals
evidence of possible abuse or criminal activity, system personnel may
provide the results of such monitoring to appropriate officials."



Lonnie Abelbeck wrote:
> On Oct 9, 2008, at 10:54 AM, Tom Chadwin wrote:
> 
>> Can you put the option in rc.conf, under MODOPTS?
> 
> I don't do analog cards, but...
> 
> -- /etc/rc snippet --
> if [ -n "$MODOPTS" ]; then
>    for i in $MODOPTS; do
>      MOD=`echo $i | cut -d: -f1`
>      OPT=`echo $i | cut -d: -f2`
>      echo "options $MOD $OPT" >> /tmp/etc/modprobe.conf
>    done
> fi
> -- /etc/rc snippet --
> 
> So, it would imply
> 
> MODOPTS="wctdm:debug=1"
> 
> would do what Mart wants.
> 
> This is also documented in /stat/etc/rc.conf
> 
> ##If you define this variable, we will automatically generate  
> modprobe.conf
> ##for you.  modprobe reads this file before loading any modules in the  
> OS.
> ##Format is modulename:option
> ##As always, you can pass multiple options and modules with spaces.
> #MODOPTS="wctdm:opermode=UK"
> 
> Lonnie
> 
>> On 9 Oct 2008, at 13:41, "Martin Rogers" <fromastlinux-
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi
>>>
>>> I would like to update /etc/modprobe.conf to enable debugging of the
>>> wctdm card (I am suffering occasional disconnects when connected over
>>> the PSTN).
>>>
>>> I have remounted the disk as RO and added the line
>>>
>>> options wctdm debug=1
>>>
>>> /etc/modprobe.conf and successfully saved the file. However after
>>> rebooting the file is reverting to its previous form, before my
>>> update.
>>>
>>> I have tried putting the new copy of modprobe.conf in /mnt/kd but the
>>> update still does not make it into the /etc/modprobe.conf.
>>>
>>> How do I update the file.
>>>
>>> Thanks in advance.
>>> Mart
>>>
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
> PROTECTED]
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to