diff options
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
85 | attach_detach_pre () | 85 | attach_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 |