diff options
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 | ||