Release attached-lock only, if device has really been detached.

This commit is contained in:
erdgeist 2006-05-22 00:41:58 +00:00
parent e71bebd003
commit b478527a9c

View File

@ -671,7 +671,7 @@ config)
detach_images keep
# Remove soft link (which acts as a lock)
rm -f ${ezjail_rootdir}.device
[ -e /dev/${ezjail_imagedevice} ] || rm -f ${ezjail_rootdir}.device
;;
esac
;;