diff options
author | Ian Lepore <ian@FreeBSD.org> | 2017-01-11 00:14:47 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2017-01-11 00:14:47 +0000 |
commit | 6a4b451a11263d63626eeb53b09df55bc1705454 (patch) | |
tree | 8d72a9f74b6f6d8741e38f864c853d01f54fcff1 /etc/rc.d | |
parent | e116c444a02313d5d113ef6c60fafeffb4773253 (diff) | |
download | src-6a4b451a11263d63626eeb53b09df55bc1705454.tar.gz src-6a4b451a11263d63626eeb53b09df55bc1705454.zip |
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
Notes
Notes:
svn path=/head/; revision=311907
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/ntpdate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate index 8f5b273d0fa2..90f9589ab00f 100755 --- a/etc/rc.d/ntpdate +++ b/etc/rc.d/ntpdate @@ -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"` |