Move ntpdate before `starting network daemons' to get cleaner output

during boot. Besides, it's not a daemon anyway.
This commit is contained in:
cjs 1997-08-05 03:32:51 +00:00
parent ab87c23f0b
commit d10a9ab09b
1 changed files with 12 additions and 12 deletions

24
etc/rc
View File

@ -1,4 +1,4 @@
# $NetBSD: rc,v 1.86 1997/08/03 22:24:20 perry Exp $
# $NetBSD: rc,v 1.87 1997/08/05 03:32:51 cjs Exp $
# originally from: @(#)rc 8.2 (Berkeley) 3/17/94
# System startup script run by init on autoboot
@ -316,6 +316,17 @@ fi
echo -n ' cron'; cron
echo '.'
# set time, if requested
if [ "$ntpdate_hosts" != NO ]; then
if [ "$ntpdate_hosts" = DEFAULT ]; then
ntpdate_hosts=`awk '/^server/ {print $2}' </etc/ntp.conf`
fi
if [ -n "$ntpdate_hosts" ]; then
echo 'Setting date via ntp.'
ntpdate -b $ntpdate_hosts
fi
fi
# now start all the other daemons
echo -n starting network daemons:
@ -345,17 +356,6 @@ 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}' </etc/ntp.conf`
fi
if [ -n "$ntpdate_hosts" ]; then
echo -n 'ntpdate:'
ntpdate -b $ntpdate_hosts
fi
fi
if [ "$xntpd_flags" != NO ]; then
if [ "$xntpd_flags" = DEFAULT ]; then
xntpd_flags="-p /var/run/xntpd.pid"