commit 0396acd2360b3793005e4638f4da896c3b29965a
parent a5abc068123c23ec782d59869ec2b83d94662c6e
Author: Hellekin O. Wolf =8) <hellekin@cepheide.org>
Date: Fri, 11 Feb 2011 17:45:54 +0100
More cleanup
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/tomb b/src/tomb
@@ -557,6 +557,11 @@ mount_tomb() {
act "mountpoint not specified, using default: $tombmount"
elif ! [ -x $CMD3 ]; then
error "mountpoint $CMD3 doesn't exist, operation aborted."
+ if [ -n "$usbkey_mount" ]; then
+ umount $usbkey_mount
+ rmdir $usbkey_mount
+ unset $usbkey_mount
+ fi
return 1
else
tombmount=$CMD3