Allow use of -6 option to "server" and "peer" in ntp.conf.
MFC after: 1 week
This commit is contained in:
parent
6d709b9a44
commit
98255d746a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203200
@ -19,7 +19,9 @@ ntpdate_start()
|
||||
if [ -z "$ntpdate_hosts" -a -f ${ntpdate_config} ]; then
|
||||
ntpdate_hosts=`awk '
|
||||
/^server[ \t]*127.127/ {next}
|
||||
/^(server|peer)/ {print $2}
|
||||
/^(server|peer)/ {
|
||||
if ($2 ~/^-/) {print $3}
|
||||
else {print $2}}
|
||||
' < ${ntpdate_config}`
|
||||
fi
|
||||
if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user