no more DEFAULT for $ntpdate_hosts; from Geoff Wing in PR bin/4073
This commit is contained in:
parent
312c78327b
commit
8cd518d0fd
4
etc/rc
4
etc/rc
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: rc,v 1.90 1997/08/29 09:33:34 veego Exp $
|
||||
# $NetBSD: rc,v 1.91 1997/09/08 02:34:44 mikel Exp $
|
||||
# originally from: @(#)rc 8.2 (Berkeley) 3/17/94
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
|
@ -145,7 +145,7 @@ fi
|
|||
|
||||
# set time, if requested
|
||||
if checkyesno ntpdate; then
|
||||
if [ "$ntpdate_hosts" = DEFAULT ]; then
|
||||
if [ -z "$ntpdate_hosts" ]; then
|
||||
ntpdate_hosts=`awk '/^server/ {print $2}' </etc/ntp.conf`
|
||||
fi
|
||||
if [ -n "$ntpdate_hosts" ]; then
|
||||
|
|
Loading…
Reference in New Issue