summaryrefslogtreecommitdiffstats
path: root/etc
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
parentbdeca0229c646759489d9340967d2407b399ba6e (diff)
downloadFreeBSD-src-86565b770f3ec4c77894f88071767becd69f198b.zip
FreeBSD-src-86565b770f3ec4c77894f88071767becd69f198b.tar.gz
Support for automatically running ntpdate and xntpd.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/netstart4
-rw-r--r--etc/rc13
2 files changed, 15 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index 26300c2..e045423 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,10 +1,12 @@
#!/bin/sh -
#
-# $Id$
+# $Id: netstart,v 1.7 1993/11/07 01:19:02 wollman Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
routedflags=-q
timedflags=NO
+xntpdflags="NO"
+ntpdate="NO"
rwhod=NO
sendmail_flags="-bd -q30m"
#kerberos_server=YES
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