3 # $NetBSD: ntpdate,v 1.8 2002/03/22 04:16:39 lukem Exp $
9 # REQUIRE: NETWORKING syslogd
17 start_cmd="ntpdate_start"
21 if [ -z "$ntpdate_hosts" -a -f /etc/ntp.conf ]; then
23 /^server[ \t]*127.127/ {next}
24 /^(server|peer)/ {print $2}
27 if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then
28 echo "Setting date via ntp."
29 ${ntpdate_program:-ntpdate} $rc_flags $ntpdate_hosts