summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-12-21 21:28:12 +0000
committerwollman <wollman@FreeBSD.org>1993-12-21 21:28:12 +0000
commit86565b770f3ec4c77894f88071767becd69f198b (patch)
tree4610223bc167ecac584e34649c8c357f6a2ff592 /etc/rc
parentbdeca0229c646759489d9340967d2407b399ba6e (diff)
downloadFreeBSD-src-86565b770f3ec4c77894f88071767becd69f198b.zip
FreeBSD-src-86565b770f3ec4c77894f88071767becd69f198b.tar.gz
Support for automatically running ntpdate and xntpd.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 4e2cee7..b2dc0b4 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.9 1993/12/17 04:20:30 ache Exp $
+# $Id: rc,v 1.10 1993/12/21 02:58:15 ache Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -159,6 +159,17 @@ if [ X${name_server} = X"YES" -a -r /etc/named.boot ]; then
echo -n ' named'; named
fi
+# $ntpdate and $xntpdflags are imported from /etc/netstart.
+# If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly.
+# If $xntpdflags != NO, start xntpd.
+if [ X"${ntpdate}" != X"NO" ]; then
+ echo -n ' ntpdate'; ntpdate $ntpdate
+fi
+
+if [ X"${xntpdflags}" != X"NO" ]; then
+ echo -n ' xntpd'; xntpd ${xntpdflags}
+fi
+
# $rwhod is imported from /etc/netstart;
# if $rwhod is set to something other than NO, rwhod is run.
if [ ${rwhod-NO} != "NO" ]; then
OpenPOWER on IntegriCloud