summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 41a4ca8..9aa32b5 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -66,8 +66,8 @@ do_cmd()
66 # Cannot auto mount crypto jails without interrupting boot process 66 # Cannot auto mount crypto jails without interrupting boot process
67 [ "${ezjail_fromrc}" = "YES" -a "${ezjail_crypt}" = "YES" -a "${action}" = "start" ] && continue 67 [ "${ezjail_fromrc}" = "YES" -a "${ezjail_crypt}" = "YES" -a "${action}" = "start" ] && continue
68 68
69 # Explicitely do only run crypto jails 69 # Explicitely do only run crypto jails when *crypto is requested
70 [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" = "YES" ] && continue 70 [ "${action%crypto}" != "${action}" -a "${ezjail_crypt}" != "YES" ] && continue
71 71
72 # Try to attach (crypto) devices 72 # Try to attach (crypto) devices
73 [ "${ezjail_image}" ] && attach_detach_pre 73 [ "${ezjail_image}" ] && attach_detach_pre
@@ -84,7 +84,7 @@ do_cmd()
84 84
85attach_detach_pre () 85attach_detach_pre ()
86{ 86{
87 if [ "${action}" = start ]; then 87 if [ "${action%crypto}" = "start" ]; then
88 # If jail is running, do not mount devices, this is the same check as 88 # If jail is running, do not mount devices, this is the same check as
89 # /etc/rc.d/jail does 89 # /etc/rc.d/jail does
90 [ -e /var/run/jail_${ezjail}.id ] && return 90 [ -e /var/run/jail_${ezjail}.id ] && return