3 # $NetBSD: ntpdate,v 1.17 2004/10/11 15:00:51 christos Exp $
7 # REQUIRE: NETWORKING mountcritremote syslogd
9 $_rc_subr_loaded .
/etc
/rc.subr
13 command="/usr/sbin/${name}"
14 start_cmd
="ntpdate_start"
19 if [ -z "$ntpdate_hosts" ]; then
22 /^(server|peer)[ \t]*127.127/ { next }
23 /^(server|peer)/ { if ($2 ~ /^-[46]/)
29 if [ -n "$ntpdate_hosts" ]; then
30 echo "Setting date via ntp."
31 $command $rc_flags $ntpdate_hosts