Allow to give more than one jail's name, eg.:

# /etc/rc.d/jail start www mail

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2005-08-07 22:38:41 +00:00
parent 5f2c46d5ed
commit 4558bd977d

View File

@ -239,5 +239,9 @@ jail_stop()
}
load_rc_config $name
[ -n "$2" ] && jail_list="$2"
run_rc_command "$1"
cmd="$1"
if [ $# -gt 0 ]; then
shift
fi
[ -n "$*" ] && jail_list="$*"
run_rc_command "${cmd}"