Annotation of src/etc/rc.securelevel, Revision 1.14
1.14 ! millert 1: # $OpenBSD: rc.securelevel,v 1.13 2000/07/11 22:30:56 matt Exp $
1.1 deraadt 2: #
3: # site-specific startup actions, daemons, and other things which
4: # can be done BEFORE your system goes into securemode. For actions
5: # which should be done AFTER your system has gone into securemode
6: # please see /etc/rc.local
7:
8: # This is the desired security level
9: # XXX
1.4 kstailey 10: # XXX it is not really acceptable to put this value in a configuration
1.1 deraadt 11: # XXX file, because locking it down requires immutability on about
12: # XXX 5 files instead of 2 (the kernel and init)
13: # XXX
14: securelevel=1
1.3 millert 15:
1.1 deraadt 16: echo -n 'starting pre-securelevel daemons:'
17:
1.13 matt 18: # Securelevel > 1 does not allow the clock to be set backwards
1.14 ! millert 19: if [ $securelevel -gt 1 -a X"${ntpdate_flags}" != X"NO" \
! 20: -a -x /usr/local/sbin/ntpdate ]; then
! 21: echo -n ' ntpdate'
! 22: /usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
1.13 matt 23: fi
24:
25: if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/tickadj \
1.11 deraadt 26: -a -e /etc/ntp.conf ]; then
1.13 matt 27: echo -n ' tickadj'; /usr/local/sbin/tickadj -Aq
1.10 deraadt 28: fi
1.1 deraadt 29:
30: echo '.'