summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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