summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2008-01-08 03:34:49 +0000
committererdgeist <erdgeist@erdgeist.org>2008-01-08 03:34:49 +0000
commitd8ead98071ed2526d03cd3b84d49edb0b44d55bd (patch)
tree492e5c42ee518c7e2e7fd0238b31c301c6187467 /ezjail.sh
parentb4889a5d6b032264ec5e5fd85d48d97cf52ae3b6 (diff)
Reverse jail order when calling stop
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 2686486..6df6358 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -44,7 +44,8 @@ do_cmd()
44 ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'` 44 ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'`
45 unset ezjail_fromrc 45 unset ezjail_fromrc
46 else 46 else
47 [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder` 47 case "${action}" in *stop) reverse_command="tail -r";; *) reverse_command="cat";; esac
48 [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && ezjail_list=`ls | xargs rcorder | ${reverse_command}`
48 echo -n "${message##_}" 49 echo -n "${message##_}"
49 fi 50 fi
50 51