HAMMER utility - Use a full path to /sbin/mount instead of relying on PATH
[dragonfly.git] / etc / rc.d / securelevel
blob11316c205ec549d97d4df2d766f5cfa3471b4a45
1 #!/bin/sh
3 # $NetBSD: securelevel,v 1.4 2002/03/22 04:34:00 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/securelevel,v 1.6 2003/05/05 15:38:41 mtm Exp $
5 # $DragonFly: src/etc/rc.d/securelevel,v 1.5 2006/10/24 09:24:15 victor Exp $
8 # PROVIDE: securelevel
10 . /etc/rc.subr
12 name="securelevel"
13 start_cmd="securelevel_start"
14 stop_cmd=":"
16 securelevel_start()
18 # Last chance to set sysctl variables that failed the first time.
20 /etc/rc.d/sysctl lastload
22 case ${kern_securelevel} in
23 [0-3]*)
24 if [ ${kern_securelevel} -ge 0 ]; then
25 echo 'Raising kernel security level: '
26 ${SYSCTL_W} kern.securelevel=${kern_securelevel}
29 esac
32 load_rc_config $name
33 run_rc_command "$1"