diff options
author | erdgeist <erdgeist@erdgeist.org> | 2008-01-08 03:34:49 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2008-01-08 03:34:49 +0000 |
commit | d8ead98071ed2526d03cd3b84d49edb0b44d55bd (patch) | |
tree | 492e5c42ee518c7e2e7fd0238b31c301c6187467 /ezjail.sh | |
parent | b4889a5d6b032264ec5e5fd85d48d97cf52ae3b6 (diff) |
Reverse jail order when calling stop
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | ||