mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Support for automatically running ntpdate and xntpd.
This commit is contained in:
parent
e2f27b409f
commit
dc8989b140
2 changed files with 15 additions and 2 deletions
|
|
@ -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 a new issue