From owner-freebsd-rc@FreeBSD.ORG Thu Sep 30 13:57:53 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D13331065672; Thu, 30 Sep 2010 13:57:53 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id 90A3C8FC14; Thu, 30 Sep 2010 13:57:53 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.0.694.0; Thu, 30 Sep 2010 09:57:42 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id AE5FF33C00; Thu, 30 Sep 2010 09:57:52 -0400 (EDT) Date: Thu, 30 Sep 2010 09:57:52 -0400 From: Ed Maste To: Jeremy Chadwick Message-ID: <20100930135752.GA81590@sandvine.com> References: <20100925000435.GA62501@sandvine.com> <4CA15FC8.8010106@FreeBSD.org> <20100929074628.GA83194@icarus.home.lan> <20100929100100.GA83642@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20100929100100.GA83642@icarus.home.lan> User-Agent: Mutt/1.4.2.1i Cc: Doug Barton , freebsd-rc@freebsd.org Subject: Re: Wait for carrier in /etc/rc.d/defaultroute X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2010 13:57:53 -0000 On Wed, Sep 29, 2010 at 03:01:00AM -0700, Jeremy Chadwick wrote: > > Ack, I forgot all about this (and despite recommending the script to > > someone on the lists a couple weeks ago)! The script Doug's referring > > to is available below, and should be placed into /usr/local/etc/rc.d (be > > sure to chmod 755/555 it as well): > > > > http://jdc.parodius.com/freebsd/netwait > > > > Example usage in /etc/rc.conf: > > > > netwait_enable="yes" > > netwait_ip="4.2.2.1 4.2.2.2" > > netwait_if="em0" > > netwait_timeout="15" I think the approach in this script is overall reasonable, but one thing I prefer about the current /etc/rc.d/defaultroute is that it doesn't need to be configured with a specific IP address, so it can "just work" out of the box. Jeremy, was your primary motivation for netwait DHCP, or are there other bootup issues you had to address with it as well? What do you think about combining the two, so that we'd have the current functionality if DHCP is in use and netwait_ip is not set, and the ping check if netwait_ip is set (regardless of the DHCP setting)? I think "netwait" is a more descriptive name than "defaultroute." -Ed