Annotation of src/etc/rc.securelevel, Revision 1.13
1.13 ! matt 1: # $OpenBSD: rc.securelevel,v 1.12 2000/03/29 17:34:56 mickey 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
! 19: if [ $securelevel -gt 1 ]; then
! 20: if [ X"${ntpdate_flags}" != X"NO" -a -x /usr/local/sbin/ntpdate ]; then
! 21: echo -n ' ntpdate'
! 22: /usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
! 23: elif [ X"${rdate_flags}" != X"NO" ]; then
! 24: echo -n ' rdate'; rdate -s ${rdate_flags}
! 25: fi
! 26: fi
! 27:
! 28: if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/tickadj \
1.11 deraadt 29: -a -e /etc/ntp.conf ]; then
1.13 ! matt 30: echo -n ' tickadj'; /usr/local/sbin/tickadj -Aq
1.10 deraadt 31: fi
1.1 deraadt 32:
33: echo '.'