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