7 # REQUIRE: NETWORKING syslogd named
15 start_cmd="ntpdate_start"
19 if [ -z "$ntpdate_hosts" -a -f ${ntpdate_config} ]; then
21 /^server[ \t]*127.127/ {next}
22 /^(server|peer)/ {print $2}
23 ' < ${ntpdate_config}`
25 if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then
26 echo "Setting date via ntp."
27 ${ntpdate_program:-ntpdate} $rc_flags $ntpdate_hosts