From owner-freebsd-bugs@FreeBSD.ORG Tue May 27 19:10:06 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5CF037B401 for ; Tue, 27 May 2003 19:10:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C16D243F3F for ; Tue, 27 May 2003 19:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4S2A5Up002785 for ; Tue, 27 May 2003 19:10:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4S2A5rG002784; Tue, 27 May 2003 19:10:05 -0700 (PDT) Resent-Date: Tue, 27 May 2003 19:10:05 -0700 (PDT) Resent-Message-Id: <200305280210.h4S2A5rG002784@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Felipe Gasper Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46E4537B401 for ; Tue, 27 May 2003 19:09:23 -0700 (PDT) Received: from fgmusic.org (adsl-64-108-0-99.dsl.clevoh.ameritech.net [64.108.0.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C2F243F3F for ; Tue, 27 May 2003 19:09:22 -0700 (PDT) (envelope-from root@fgmusic.org) Received: from fgmusic.org (localhost [127.0.0.1]) by fgmusic.org (8.12.8p1/8.12.6) with ESMTP id h4S29KVH000363 for ; Tue, 27 May 2003 21:09:20 -0500 (CDT) (envelope-from root@fgmusic.org) Received: (from root@localhost) by fgmusic.org (8.12.8p1/8.12.6/Submit) id h4S29K0j000362; Tue, 27 May 2003 21:09:20 -0500 (CDT) Message-Id: <200305280209.h4S29K0j000362@fgmusic.org> Date: Tue, 27 May 2003 21:09:20 -0500 (CDT) From: Felipe Gasper To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/52743: /etc/ppp/ppp.linkup instability issues X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 02:10:07 -0000 >Number: 52743 >Category: bin >Synopsis: /etc/ppp/ppp.linkup instability issues >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 27 19:10:05 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Felipe Gasper >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: System: FreeBSD fgmusic.org 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Tue Apr 1 22:05:17 CST 2003 fgasper@operaman.ods.org:/usr/obj/usr/src/sys/CUSTOM i386 >Description: When trying to do shell commands from /etc/ppp/ppp.linkup (to handle dynamic DNS issues), the ppp program fails to initiate a proper connection. The following is my ppp.linkup file as it stands now: --------------- # # ppp.linkup # FG 20-V-2003 # SBC_Yahoo: # ! sh -c "/usr/scripts/linkup.sh" # mail root w/ new IP ! sh -c "/sbin/ifconfig tun0 | /usr/bin/mail -s 'New IP' root" # dynamic DNS # ! sh -c "/usr/local/sbin/odsclient fgasper `/bin/cat /etc/ods-pw` operaman.ods.org" # ! sh -c "/usr/local/bin/wget -O - --http-user=fgasper --http-passwd=GurgiKin 'https ://dynamic.zoneedit.com/auth/dynamic.html?host=fgmusic.org'" # ! sh -c "/usr/local/bin/wget -O - https://www.sitelutions.com/dnsup?id=145690\&user =fgasper@uiuc.edu\&pass=\&ip= --------------- An alternate form of the ifconfig line that I've used (and that makes ppp.linkup mess things up) is: -------- ! sh -c "/sbin/ifconfig tun0 | /usr/bin/grep inet | /usr/bin/awk '{print $2}' | mail -s 'New IP' root" -------- Taking out the two middle commands clears up the problem. Also, running any external script (like the linkup.sh) seems to hose things as well. >How-To-Repeat: Configure /etc/ppp/ppp.linkup as I have it and run it in PPPoE mode w/ ddial. >Fix: >Release-Note: >Audit-Trail: >Unformatted: serious medium bin