From owner-freebsd-questions@FreeBSD.ORG Tue Oct 7 14:47:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DC1416A4C1 for ; Tue, 7 Oct 2003 14:47:09 -0700 (PDT) Received: from mail.ohwy.com (ns1.ohwy.com [12.154.210.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1AF043FE3 for ; Tue, 7 Oct 2003 14:47:08 -0700 (PDT) (envelope-from rduvall@onlinehighways.net) From: rduvall@onlinehighways.net To: freebsd-questions@freebsd.org Date: Tue, 07 Oct 2003 14:47:02 -0700 X-Mailer: Null Webmail / 0.6.3 Message-Id: Subject: Re: ppp shell command and MYADDR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 21:47:09 -0000 I fixed the problem... It seems that I cannot specify my shell command within ppp.conf, I have to use a ppp.linkup file and specify from within there. It works correctly now. Sincerely, Rick Duvall --- rduvall@onlinehighways.net wrote: > I have configured ppp to bring up my ADSL connection (PPPoA) on Qwest MSN. It > works great! However, for personal reasons which I won't mention here, I would > like ppp to write the dynamic IP address that was assigned to me to a file > called test.txt. As you can see by the config below, this *should* work via > the > shell command in ppp.conf, which executes ipaddr.sh and sends MYADDR to the > script. However, when the script executes, it writes 10.0.0.2 to the file > instead of the IP assigned. > > How do I get it to write the address assigned? > > > Here is my entry in ppp.conf > > adsl: > set authname xxxxxxxx > set authkey xxxxxx > set device !"/usr/local/sbin/pppoa2 -vpi 0 -vci 32" > accept chap pap > set speed sync > set timeout 0 > enable lqr > set lqrperiod 5 > set redial 15 10000 > set dial "" > set ifaddr 10.0.0.2/0 10.0.0.1/0 255.255.255.0 0.0.0.0 > add default HISADDR > shell /etc/ppp/ipaddr.sh MYADDR > > Here is the shell script: > > #!/bin/sh > > MYADDR=$1 > echo ${MYADDR} > /etc/ppp/test.txt > exit; > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >