summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-03-25 17:57:50 +0000
committererdgeist <erdgeist@erdgeist.org>2006-03-25 17:57:50 +0000
commitdb9c85aad02a7fdb1673be212871757e2b62d338 (patch)
treeb52adf53b673194fe3dd326622c3c03a7941560e /ezjail.sh
parent57ee5da10b10bb8d9b0fff569b22045a1d3905ec (diff)
bug in startcrypto fixed
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