diff options
author | erdgeist <erdgeist@erdgeist.org> | 2007-03-23 16:08:43 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2007-03-23 16:08:43 +0000 |
commit | 312c276483c2277b93ddc79ce51b4b017521e5f1 (patch) | |
tree | daa0fb530c30e9562ebbfe1b921b0427b8303ece /ezjail.sh | |
parent | 59dde63a40f176a9e0dbebd6ec49edd4a32199f9 (diff) |
Stale device link detection completed and tested. More testing required.
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |