From owner-freebsd-current@FreeBSD.ORG  Mon Apr 21 12:29:34 2008
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C8E0B106570A
	for <current@freebsd.org>; Mon, 21 Apr 2008 12:29:34 +0000 (UTC)
	(envelope-from randy@psg.com)
Received: from rip.psg.com (rip.psg.com [IPv6:2001:418:1::39])
	by mx1.freebsd.org (Postfix) with ESMTP id B7F848FC1F
	for <current@freebsd.org>; Mon, 21 Apr 2008 12:29:34 +0000 (UTC)
	(envelope-from randy@psg.com)
Received: from 50.216.138.210.bn.2iij.net ([210.138.216.50] helo=rmac.psg.com)
	by rip.psg.com with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.69 (FreeBSD)) (envelope-from <randy@psg.com>)
	id 1Jnv9K-000Fh7-4b
	for current@freebsd.org; Mon, 21 Apr 2008 12:29:34 +0000
Message-ID: <480C88AC.8020708@psg.com>
Date: Mon, 21 Apr 2008 21:29:32 +0900
From: Randy Bush <randy@psg.com>
User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213)
MIME-Version: 1.0
To: current@freebsd.org
X-Enigmail-Version: 0.95.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: 
Subject: /etc/rc.d/ppp  ppp_unit
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Apr 2008 12:29:34 -0000

        # Check for hard wired unit

        eval _ppp_unit=\$ppp_${_ppp_profile_cleaned}_unit
        if [ -n "_ppp_unit" ]; then
                _ppp_unit="-unit${_ppp_unit}"
        fi
        rc_flags="$rc_flags $_ppp_unit"

creates the illegal invocation "-unit" when /etc/ppp/ppp.conf has

   set device PPPoE:vr0

and needs no unit

manually starting

   ppp -dedicated -nat foo

works fine.  but invoking /etc/rc.d/ppp start does not work

randy