From owner-freebsd-questions Sun Feb 9 10:02:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA26226 for questions-outgoing; Sun, 9 Feb 1997 10:02:30 -0800 (PST) Received: from proxy2.ba.best.com (root@proxy2.ba.best.com [206.184.139.13]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA26219 for ; Sun, 9 Feb 1997 10:02:24 -0800 (PST) Received: from bsampley.vip.best.com (bsampley.vip.best.com [206.184.160.196]) by proxy2.ba.best.com (8.8.5/8.8.3) with SMTP id KAA02877; Sun, 9 Feb 1997 10:01:06 -0800 (PST) Message-ID: <32FE1082.41C67EA6@best.com> Date: Sun, 09 Feb 1997 09:59:30 -0800 From: Burton Sampley X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2-BETA_A i386) MIME-Version: 1.0 To: voy CC: questions@freebsd.org Subject: Re: modem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk voy wrote: > > I am having a problem with my modem and the pppd. > It will initialize fine and i can use the net fine > but i can't shut it down .. i try to run pppd again and it > just says pppd[314]: Connect script failed > i half toot my machine to log off the internet. > Does anyone know of a quick fix for this ? > thankx > voy > ---------------------------------- > E-Mail: voy > Date: 09-Feb-97 > Time: 12:21:48 > > This message was sent by XFMail > ---------------------------------- Here's a SH script I found somewhere (I can't remember where I found it): bash$ cat /etc/ppp/ppp-off #!/bin/sh pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'` if [ X${pid} != "X" ]; then echo 'killing pppd, PID=' ${pid} kill -9 ${pid} fi ifconfig ppp0 down ifconfig ppp0 delete exit 0 bash$ Just SU to root and run this script. It will shutdown pppd. Hope this helps. -- Burton Sampley Email: bsampley@best.com | home page: http://www.best.com/~bsampley