3 # $NetBSD: ntpdate,v 1.19 2009/08/03 17:45:48 perry Exp $
7 # REQUIRE: NETWORKING mountcritremote syslogd named
10 $_rc_subr_loaded .
/etc
/rc.subr
14 command="/usr/sbin/${name}"
15 start_cmd
="ntpdate_start"
20 if [ -z "$ntpdate_hosts" ]; then
23 /^(server|peer)[ \t]*127.127/ { next }
24 /^(server|peer)/ { if ($2 ~ /^-[46]/)
30 if [ -n "$ntpdate_hosts" ]; then
31 echo "Setting date via ntp."
32 $command $rc_flags $ntpdate_hosts