From owner-freebsd-questions Fri Jun 7 5:28:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from server1.one-dom.com (server1.one-dom.com [64.39.30.52]) by hub.freebsd.org (Postfix) with SMTP id D8FED37B401 for ; Fri, 7 Jun 2002 05:28:02 -0700 (PDT) Received: (qmail 5590 invoked from network); 7 Jun 2002 12:28:01 -0000 Received: from unknown (HELO linuxorbit.com) (208.18.255.39) by 0004.info with SMTP; 7 Jun 2002 12:28:01 -0000 Message-ID: <3D00A6CD.6030001@linuxorbit.com> Date: Fri, 07 Jun 2002 07:27:57 -0500 From: David LeCount User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc3) Gecko/20020531 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions Subject: Re: ppp.linkup and linkdown Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Whoo hoo! I got it fixed. What I did was make a seperate script named /etc/ppp/link.sh which takes start and stop parameters like a startup script. Then I put a line "!bg /etc/ppp/link.sh start" in ppp.linkup and the equivelant in ppp.linkdown. It works perfectly now. The difference between ifconfig down and destroy is that down just marks a network interface as down or unusable, while destroy completely removes the interface so it doesn't even show up in ifconfig. Up and create are basically the same. Like I said before, gif0 doesn't exist when I boot so I have to create it. But I don't have to destroy it when I disconnect; I could down it. I may change that later but I don't care enough right now. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message