[ previous ] [ next ] [ threads ]
 
 From:  Peter Curran <peter at closeconsultants dot com>
 To:  Manuel Kasper <mk at neon1 dot net>
 Cc:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall-dev] Help with module interface needed
 Date:  Sat, 3 Jul 2004 00:24:07 +0100
On Friday 02 July 2004 22:36, Manuel Kasper wrote:
> On 02.07.2004 20:21 +0100, Peter Curran wrote:
> > Thats it - any ideas?
>
> I just tried putting a simple PHP script in /etc/inc/ext/openvpn/rc,
> and sure enough, it was executed during the boot.
>

Good to hear - at least I know it is me!

> Note that because system.inc executes the extensions' rc file with
> exec() and not passthru(), you won't see any output that your scripts
> produce on the console. I think I'll change that call in the next
> release (exec -> passthru) for convenience.
>

Yes - thats good.  I was using a simple echo "hello";  to indicate my rc 
script was called. :-(

So, that means that my script is called:  It is so simple that it muts be 
running, therefore the problem lies with the openvpn_configure(); call.

Now, the included file has lots of other includes, and that may explain why it 
does not work right.  I will backtrack the list of includes to make sure that 
my dependencies are sane during boot (as opposed to after).

I think I only depend on $g and $config, but there mey be others.

Thanks for the tips - I am sure I will get it working (eventually)

Cheers
Peter



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.