[ 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 15:03:56 +0100
Manuel

Thanks for your help on this one.  The issue was that my openvpn.inc utiltity 
file did not include config.inc.  I had not noticed this before because it 
had always been called via the GUI, which has already included config.inc.

I think that the other changes you mention, especially moving to passthru() 
instead of exec() to initialise the optional modules would be very useful.

Cheers

Peter


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.
>
> 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.
>


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