summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 9f181f2..5394a63 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -102,8 +102,8 @@ attach_detach_pre ()
102 # Fetch destination of soft link 102 # Fetch destination of soft link
103 ezjail_device=`stat -f "%Y" ${ezjail_rootdir}.device` 103 ezjail_device=`stat -f "%Y" ${ezjail_rootdir}.device`
104 104
105 mount -p -v | grep -E "^${ezjail_rootdir}.device.${ezjail_rootdir}" && echo "Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 105 mount -p -v | grep -E "^${ezjail_rootdir}.device.${ezjail_rootdir}" && echo "Warning: Skipping jail. Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1
106 mount -p -v | grep -E "^${ezjail_device}.${ezjail_rootdir}" && echo "Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1 106 mount -p -v | grep -E "^${ezjail_device}.${ezjail_rootdir}" && echo "Warning: Skipping jail. Jail image file ${ezjail} already attached as ${ezjail_device}. 'ezjail-admin config -i detach' it first." && return 1
107 107
108 # Remove stale device link 108 # Remove stale device link
109 rm -f ${ezjail_rootdir}.device 109 rm -f ${ezjail_rootdir}.device