From owner-cvs-usrsbin Sun Dec 22 09:29:38 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA12780 for cvs-usrsbin-outgoing; Sun, 22 Dec 1996 09:29:38 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA12773; Sun, 22 Dec 1996 09:29:36 -0800 (PST) Date: Sun, 22 Dec 1996 09:29:36 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199612221729.JAA12773@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ppp command.c defs.h main.c modem.c phase.h ppp.8 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jkh 96/12/22 09:29:35 Modified: usr.sbin/ppp command.c defs.h main.c modem.c phase.h ppp.8 Log: For /usr/sbin/ppp, you must choose between running ppp in the background or connecting to a host immediately in the foreground. I would like to be able to run ppp from a script so that my script can be sure that it is connected to the 'net before it continues running: # Dial up the internet. ppp -background myprovider || exit 1 do-some-net-command # Hang up the modem. kill -HUP `cat /var/run/ppp.tun0.pid` Another problem is that the current ppp calls its process id file `/var/run/PPP.server', which may conflict if you have more than one IP tunnel interface available. Closes PR#1469 Submitted by: Gord Matzigkeit Revision Changes Path 1.27 +6 -7 src/usr.sbin/ppp/command.c 1.8 +6 -1 src/usr.sbin/ppp/defs.h 1.26 +80 -32 src/usr.sbin/ppp/main.c 1.26 +13 -3 src/usr.sbin/ppp/modem.c 1.3 +3 -2 src/usr.sbin/ppp/phase.h 1.23 +63 -21 src/usr.sbin/ppp/ppp.8