From 2cce47a87f9753509173b084637813f967ed013a Mon Sep 17 00:00:00 2001 From: "Hellekin O. Wolf =8)" Date: Fri, 11 Feb 2011 17:45:54 +0100 Subject: [PATCH] More cleanup --- src/tomb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tomb b/src/tomb index a6d30a0..e234dda 100755 --- 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