Allow for a syntax extension for "ntp.conf" with ntp 4.2.0.

This commit is contained in:
fredb 2003-10-19 13:31:28 +00:00
parent b703c0fa68
commit 663be81e89
1 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: ntpdate,v 1.11 2003/10/19 13:23:57 fredb Exp $
# $NetBSD: ntpdate,v 1.12 2003/10/19 13:31:28 fredb Exp $
#
# PROVIDE: ntpdate
@ -19,7 +19,10 @@ ntpdate_start()
ntpdate_hosts=`awk '
/^#/ { next }
/^(server|peer)[ \t]*127.127/ { next }
/^(server|peer)/ { print $2 }
/^(server|peer)/ { if ($2 ~ /[-]/)
print $3
else
print $2 }
/^multicastclient$/ { print "224.0.1.1" }
/^multicastclient/ { print $2 }
' </etc/ntp.conf`