On Nov 16, 2007 4:30 AM, Toni Mueller <[EMAIL PROTECTED]> wrote:
> On Fri, 16.11.2007 at 11:43:38 +0100, frantisek holop <[EMAIL PROTECTED]>
> wrote:
> > ntpd_flags="-s"
...
> I've removed the '-s' flag for this reason, although I would very much
> prefer to have it in place in the case that I have net access. I don't
> know whether it would be feasible for ntpd to see whether there's an
> appropriate route, and whether the relevant interfaces are up.
While Otto's fixing the real bug in ntpd, you can always implement the
"don't use -s unless there's an interface up" logic yourself in
/etc/rc.conf.local. Indeed, my rc.conf.local contains the following:
if ifconfig em0 | grep 'status: active' >/dev/null 2>&1 ||
ifconfig wi0 >/dev/null 2>&1
then
ntpd_flags=-s
else
ntpd_flags=NO
fi
I.e., start ntpd (with the -s option) if and only if my 'em' interface
is active or I plugged in my 'wi' PCMCIA card before booting.
Philip Guenther