From 696733c7fa8183741c9097debfa553c71a345af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 29 Mar 2004 20:00:54 +0000 Subject: [PATCH] Fix the case where $ntpdate_hosts was not specified and /etc/ntp.conf does not exist. Submitted by: ru --- etc/rc.d/ntpdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate index b2f4055e3427..1ef9b614755f 100755 --- a/etc/rc.d/ntpdate +++ b/etc/rc.d/ntpdate @@ -17,13 +17,13 @@ start_cmd="ntpdate_start" ntpdate_start() { - if [ -z "$ntpdate_hosts" ]; then + if [ -z "$ntpdate_hosts" -a -f /etc/ntp.conf ]; then ntpdate_hosts=`awk ' /^server[ \t]*127.127/ {next} /^(server|peer)/ {print $2} '