Date: Sat, 5 Nov 2011 17:43:09 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Robert Simmons <rsimmons0@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: ntpdate on boot problem Message-ID: <alpine.BSF.2.00.1111051739330.28513@wonkity.com> In-Reply-To: <CA%2BQLa9A4h-jK421pgPxe0wDZCnFnN2LV0N6YFQ32YWqbOw2LKg@mail.gmail.com> References: <CA%2BQLa9CfBYRshynTPDkYDapA_M_rDr-UD6sh-JYBGfSPONBJYQ@mail.gmail.com> <alpine.BSF.2.00.1111051653120.28513@wonkity.com> <CA%2BQLa9A4h-jK421pgPxe0wDZCnFnN2LV0N6YFQ32YWqbOw2LKg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <alpine.BSF.2.00.1111051741332.28513@wonkity.com> On Sat, 5 Nov 2011, Robert Simmons wrote: > On Sat, Nov 5, 2011 at 6:55 PM, Warren Block <wblock@wonkity.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1111051739330.28513>