jail (204818) | jail (220153) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/etc/rc.d/jail 204818 2010-03-07 04:26:21Z dougb $ | 3# $FreeBSD: head/etc/rc.d/jail 220153 2011-03-30 01:19:00Z emaste $ |
4# 5 6# PROVIDE: jail 7# REQUIRE: LOGIN cleanvar 8# BEFORE: securelevel 9# KEYWORD: nojail shutdown 10 11# WARNING: This script deals with untrusted data (the data and --- 202 unchanged lines hidden (view full) --- 214 _knob="$1" 215 _mib="$2" 216 _msg="$3" 217 218 _current=`${SYSCTL} -n $_mib 2>/dev/null` 219 if checkyesno $_knob ; then 220 if [ "$_current" -ne 1 ]; then 221 echo -n " ${_msg}=YES" | 4# 5 6# PROVIDE: jail 7# REQUIRE: LOGIN cleanvar 8# BEFORE: securelevel 9# KEYWORD: nojail shutdown 10 11# WARNING: This script deals with untrusted data (the data and --- 202 unchanged lines hidden (view full) --- 214 _knob="$1" 215 _mib="$2" 216 _msg="$3" 217 218 _current=`${SYSCTL} -n $_mib 2>/dev/null` 219 if checkyesno $_knob ; then 220 if [ "$_current" -ne 1 ]; then 221 echo -n " ${_msg}=YES" |
222 ${SYSCTL_W} 1>/dev/null ${_mib}=1 | 222 ${SYSCTL} 1>/dev/null ${_mib}=1 |
223 fi 224 else 225 if [ "$_current" -ne 0 ]; then 226 echo -n " ${_msg}=NO" | 223 fi 224 else 225 if [ "$_current" -ne 0 ]; then 226 echo -n " ${_msg}=NO" |
227 ${SYSCTL_W} 1>/dev/null ${_mib}=0 | 227 ${SYSCTL} 1>/dev/null ${_mib}=0 |
228 fi 229 fi 230} 231 232# is_current_mountpoint() 233# Is the directory mount point for a currently mounted file 234# system? 235# --- 507 unchanged lines hidden --- | 228 fi 229 fi 230} 231 232# is_current_mountpoint() 233# Is the directory mount point for a currently mounted file 234# system? 235# --- 507 unchanged lines hidden --- |