From db9c85aad02a7fdb1673be212871757e2b62d338 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Mar 2006 17:57:50 +0000 Subject: bug in startcrypto fixed --- ezjail.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ezjail.sh') diff --git a/ezjail.sh b/ezjail.sh index 41a4ca8..9aa32b5 100755 --- a/ezjail.sh +++ b/ezjail.sh @@ -66,8 +66,8 @@ do_cmd() # Cannot auto mount crypto jails without interrupting boot process [ "${ezjail_fromrc}" = "YES" -a "${ezjail_crypt}" = "YES" -a "${action}" = "start" ] && continue - # Explicitely do only run crypto jails - [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" = "YES" ] && continue + # Explicitely do only run crypto jails when *crypto is requested + [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" != "YES" ] && continue # Try to attach (crypto) devices [ "${ezjail_image}" ] && attach_detach_pre @@ -84,7 +84,7 @@ do_cmd() attach_detach_pre () { - if [ "${action}" = start ]; then + if [ "${action%crypto}" = "start" ]; then # If jail is running, do not mount devices, this is the same check as # /etc/rc.d/jail does [ -e /var/run/jail_${ezjail}.id ] && return -- cgit v1.2.3