From owner-freebsd-questions Fri Dec 20 5:32:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3B4237B401 for ; Fri, 20 Dec 2002 05:32:13 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D234643EEA for ; Fri, 20 Dec 2002 05:32:12 -0800 (PST) (envelope-from 520023893678-0001@t-online.de) Received: from fwd05.sul.t-online.de by mailout10.sul.t-online.com with smtp id 18PNG0-0007KD-0H; Fri, 20 Dec 2002 14:32:04 +0100 Received: from pD9017248.dip.t-dialin.net (520023893678-0001@[217.1.114.72]) by fwd05.sul.t-online.com with esmtp id 18PNFq-0FhiBEC; Fri, 20 Dec 2002 14:31:54 +0100 Date: Fri, 20 Dec 2002 14:31:20 +0000 (GMT) From: 520023893678-0001@t-online.de (P. U. Kruppa) To: Scott Mitchell Cc: Jonathan Chen , "P. U. Kruppa" <520023893678-0001@t-online.de>, Subject: Re: starting ppp on boot up In-Reply-To: <20021220102345.A29073@fishballoon.dyndns.org> Message-ID: <20021220141948.O934-100000@small.pukruppa.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: 520023893678-0001@t-dialin.net 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 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