Support for automatically running ntpdate and xntpd.
This commit is contained in:
parent
e2f27b409f
commit
dc8989b140
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=908
@ -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
|
||||
|
13
etc/rc
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user