When you enable ntpd in /etc/rc.conf like so
ntpd_flags="-s" # for normal use: ""if your network interface isn't up, ntpd can hang for a while before the system finishes
if ifconfig fxp0 | grep 'status: active' >/dev/null 2>&1I set ntpd_flags=NO in /etc/rc.conf and then entered the code above in /etc/rc.local
then
ntpd_flags=-s
else
ntpd_flags=NO
fi
if ifconfig fxp0 | grep 'status: active' >/dev/null 2>&1 ||That way, if either one's up, ntpd will be able to set the time. If not, the script will set
ifconfig wi0 >/dev/null 2>&1
then
ntpd_flags=-s
else
ntpd_flags=NO
fi
No affiliation between this site and the OpenBSD project exists or is implied.