From owner-freebsd-questions@FreeBSD.ORG Sat Nov 5 23:43:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3272C1065672 for ; Sat, 5 Nov 2011 23:43:10 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id E27758FC27 for ; Sat, 5 Nov 2011 23:43:09 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pA5Nh9CX029124; Sat, 5 Nov 2011 17:43:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pA5Nh9kp029121; Sat, 5 Nov 2011 17:43:09 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 5 Nov 2011 17:43:09 -0600 (MDT) From: Warren Block To: Robert Simmons In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1238987321-1320536430=:28513" Content-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sat, 05 Nov 2011 17:43:09 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: ntpdate on boot problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2011 23:43:10 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-1238987321-1320536430=:28513 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; FORMAT=flowed Content-Transfer-Encoding: 8BIT Content-ID: On Sat, 5 Nov 2011, Robert Simmons wrote: > On Sat, Nov 5, 2011 at 6:55 PM, Warren Block wrote: >> On Sat, 5 Nov 2011, Robert Simmons wrote: >>> Is there a way to make sure that the interface is UP and working >>> before running ntpdate at boot on a box with a static IP address? >> Yes, it is.  FreeBSD 8-STABLE and 9 have /etc/rc.d/netwait just for this. > > Thanks, could you elaborate as to how I use netwait at boot to run ntpdate? Untested: netwait_enable="YES" netwait_ip="192.168.1.1" # IP address to ping to verify network is up netwait_if="em0" # interface to use Also there's netwait_timeout, which defaults to 60 in /etc/defaults/rc.conf. ---902635197-1238987321-1320536430=:28513--