From owner-freebsd-questions@FreeBSD.ORG Fri Jun 24 01:54:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 49FA316A41F for ; Fri, 24 Jun 2005 01:54:28 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6A9243D53 for ; Fri, 24 Jun 2005 01:54:27 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so778447wra for ; Thu, 23 Jun 2005 18:54:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UhnBDy9WbkzQJ65rTDnH6LHnh/obAf+MPHqSuupICazOjseOGPJVuwdGCezkxGSGl3GYuuoT95C7wzbHujo6Yhg7hKmjHATeZT1cYl/IS4Kq+1gpXN7Qzf0lNN2otNdZa6jhaxNSeWfkmRbrOSZHNFXxsCu41CUIcPVCjfUttwY= Received: by 10.54.15.71 with SMTP id 71mr1537129wro; Thu, 23 Jun 2005 18:54:27 -0700 (PDT) Received: by 10.54.66.16 with HTTP; Thu, 23 Jun 2005 18:54:27 -0700 (PDT) Message-ID: Date: Fri, 24 Jun 2005 04:54:27 +0300 From: Abu Khaled To: Reid Linnemann In-Reply-To: <20050623155015.CC6F0A0633@csa.cs.okstate.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050623155015.CC6F0A0633@csa.cs.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: netgraph startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Abu Khaled List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 01:54:28 -0000 On 6/23/05, Reid Linnemann wrote: >=20 > I'm using netgraph to bridge a few interfaces on a -CURRENT system. > I've used the example bridge script > /usr/share/examples/netgraph/ether.bridge, and it works perfectly after > setting the interface vars. >=20 > However, there are no rc.d hooks (that I am aware of) that will kick off > netgraph scripts on system boot, forcing me to manually run the netgraph > script at each reboot. I'm sure I could hack the script to give it > rcorder keywords and handlers for rcng arguments, but that seems to be > an overworked solution. I'm curious, how have other netgraph users have > solved this problem? Why don't you start your script from /etc/rc.local. I use rc.local to start many scripts for custom commands/daemons I need to be ready once the system (re)starts. # ee /etc/rc.local /foo.sh --=20 Kind regards Abu Khaled