From 36b2c99667f9ce60d6a04ca0575650c379a6b47c Mon Sep 17 00:00:00 2001 From: perry Date: Sun, 27 Apr 1997 23:17:56 +0000 Subject: [PATCH] Add support for an ntpdate_hosts variable. settings: NO: don't run ntpdate on boot DEFAULT:extract a list of hosts from /etc/ntp.conf otherwise, a list of hosts to poll with ntpdate --- etc/rc | 13 ++++++++++++- etc/rc.conf | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 0dd786d0ee80..16dbfdb324ed 100644 --- a/etc/rc +++ b/etc/rc @@ -1,4 +1,4 @@ -# $NetBSD: rc,v 1.74 1997/04/23 01:24:22 perry Exp $ +# $NetBSD: rc,v 1.75 1997/04/27 23:17:56 perry Exp $ # originally from: @(#)rc 8.2 (Berkeley) 3/17/94 # System startup script run by init on autoboot @@ -311,6 +311,17 @@ if [ "$timed_flags" != NO ]; then echo -n ' timed'; timed $timed_flags fi +if [ "$ntpdate_hosts" != NO ]; then + if [ "$ntpdate_hosts" = DEFAULT ]; then + ntpdate_hosts=`awk '/^server/ {print $2}'