Merge pull request #53 from davinerd/fix_remove_mountpoint_51

Removing default mount point when umounting the tomb
This commit is contained in:
Jaromil 2011-10-25 15:14:29 -07:00
commit 5d54a3b121

View File

@ -954,8 +954,11 @@ umount_tomb() {
umount ${tombmount}
if ! [ $? = 0 ]; then
error "Tomb is busy, cannot umount!"
else
rmdir ${tombmount}
else
# this means we used a "default" mount point
if [ "${tombmount}" = "/media/${tombname}.tomb" ]; then
rmdir ${tombmount}
fi
fi
fi