From d8ead98071ed2526d03cd3b84d49edb0b44d55bd Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 8 Jan 2008 03:34:49 +0000 Subject: Reverse jail order when calling stop --- ezjail.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ezjail.sh b/ezjail.sh index 2686486..6df6358 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -44,7 +44,8 @@ do_cmd() ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'` unset ezjail_fromrc else - [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder` + case "${action}" in *stop) reverse_command="tail -r";; *) reverse_command="cat";; esac + [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder | ${reverse_command}` echo -n "${message##_}" fi -- cgit v1.2.3