mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 04:54:07 +01:00
Follow r311103: add "pool" to the keywords that rc.d/ntpdate examines to
find a server address in ntp.conf. Submitted by: Ronald Klop <ronald@klop.ws> Pointy hat to: ian
This commit is contained in:
parent
e116c444a0
commit
6a4b451a11
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311907
@ -20,7 +20,7 @@ ntpdate_start()
|
||||
if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then
|
||||
ntpdate_hosts=`awk '
|
||||
/^server[ \t]*127.127/ {next}
|
||||
/^(server|peer)/ {
|
||||
/^(server|peer|pool)/ {
|
||||
if ($2 ~/^-/) {print $3}
|
||||
else {print $2}}
|
||||
' < "$ntpdate_config"`
|
||||
|
Loading…
Reference in New Issue
Block a user