Using MYADDR as an argument in ppp.linkup

Tom Hukins tom at FreeBSD.org
Wed Oct 10 18:15:24 BST 2001


On Wed, Oct 10, 2001 at 05:13:26PM +0100, Ceri Storey wrote:
> On Wed, Oct 10, 2001 at 04:32:16PM +0100, Tom Hukins wrote:
> > 
> > I've added the following line to /etc/ppp.linkup, with no luck:
> >   !bg /usr/local/sbin/ddclient -daemon=0 -syslog -use=ip ip=MYADDR
> 
> Did you add it after the relevant configuration label? eg:
> adsl:
>  !bg sh -c "sh /usr/local/libexec/firewall INTERFACE MYADDR |logger -t ipfw"

Yes, I've got details for "provider:" in ppp.conf, and my ppp.linkup
just contains:
provider:
  !bg /usr/local/sbin/ddclient -daemon=0 -syslog -use=ip ip="MYADDR"

> > Does anyone know what I'm doing wrong?
> 
> Do you get anything in the logs? if not, adding:

Yes, I'm already logging this.  I just get the output of the command
above, without MYADDR substituted.  For example:
  Oct 10 17:15:17 tomtest ppp[2884]: Command: ntlworld: !bg
  /usr/local/sbin/ddclient -daemon=0 -syslog -use=ip ip=MYADDR

Thanks,
Tom




More information about the Ukfreebsd mailing list