Date: Fri, 20 Dec 2002 14:31:20 +0000 (GMT) From: 520023893678-0001@t-online.de (P. U. Kruppa) To: Scott Mitchell <scott.mitchell@mail.com> Cc: Jonathan Chen <jonc@chen.org.nz>, "P. U. Kruppa" <520023893678-0001@t-online.de>, <freebsd-questions@FreeBSD.ORG> Subject: Re: starting ppp on boot up Message-ID: <20021220141948.O934-100000@small.pukruppa.de> In-Reply-To: <20021220102345.A29073@fishballoon.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 20 Dec 2002, Scott Mitchell wrote:
> On Fri, Dec 20, 2002 at 08:47:33PM +1300, Jonathan Chen wrote:
> > On Fri, Dec 20, 2002 at 06:59:18AM +0000, P. U. Kruppa wrote:
> > > Hi!
> > >
> > > I have a well working user ppp configuration, which I run
> > > manually by
> > > # ppp -nat -ddial adsl
> > > What is the simpliest way to start this automatically on boot up?
> >
> > By adding the following lines into your /etc/rc.conf:
> >
> > ppp_enable="YES"
> > ppp_mode="ddial"
> > ppp_profiles="adsl"
>
> You might want
>
> ppp_nat="YES"
>
> in there as well
In the meantime I found # man and copied/edited this
- working - /usr/local/etc/rc.d - script:
-------------------------------------------
#!/bin/sh -
#
# initialization/shutdown script for pppd
case "$1" in
start)
/usr/sbin/ppp -nat -ddial adsl && echo -n ' pppd'
;;
stop)
kill `cat /var/run/foo.pid` && echo -n ' pppd'
;;
*)
echo "unknown option: $1 - should be 'start' or 'stop'" >&2
;;
esac
------------------------------------------
Does this do anything substantially different to your idea?
Uli.
*-----------------------------------*
* Peter Ulrich Kruppa *
* - Wuppertal - *
* Germany *
*-----------------------------------*
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021220141948.O934-100000>
