diff --git a/src/etc/rc.conf b/src/etc/rc.conf index c3f9d718..1642fd8c 100644 --- a/src/etc/rc.conf +++ b/src/etc/rc.conf @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: rc.conf,v 1.30 1998/09/17 03:46:34 pattonme Exp $ +# $OpenBSD: rc.conf,v 1.31 1998/09/18 23:52:01 deraadt Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=NO # for 'normal' use: routed_flags="-q" @@ -37,6 +37,7 @@ inetd=YES # almost always needed lpd=NO # printing daemons check_quotas=YES # NO may be desireable in some YP environments sshd=YES # run sshd if it exists +ntpd=YES # run ntpd if it exists # miscellaneous other flags # only used if the appropriate server is marked YES above diff --git a/src/etc/rc.securelevel b/src/etc/rc.securelevel index 3380b9a3..9e835ea7 100644 --- a/src/etc/rc.securelevel +++ b/src/etc/rc.securelevel @@ -1,4 +1,4 @@ -# $OpenBSD: rc.securelevel,v 1.9 1998/03/25 23:08:12 deraadt Exp $ +# $OpenBSD: rc.securelevel,v 1.10 1998/09/18 23:52:01 deraadt Exp $ # # site-specific startup actions, daemons, and other things which # can be done BEFORE your system goes into securemode. For actions @@ -17,9 +17,9 @@ echo -n 'starting pre-securelevel daemons:' # Former ntpd versions was called xntpd, change the ntpd references below # to xntpd if you run such a version. -#if [ -x /usr/local/sbin/ntpd ]; then -# /usr/local/sbin/tickadj -Aq -# echo -n ' ntpd'; /usr/local/sbin/ntpd -#fi +if [ X"${ntpd}" == X"YES" -x /usr/local/sbin/ntpd ]; then + /usr/local/sbin/tickadj -Aq + echo -n ' ntpd'; /usr/local/sbin/ntpd +fi echo '.'