summaryrefslogtreecommitdiff
path: root/bin/wrappers/cryptsetup_umount
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wrappers/cryptsetup_umount')
-rwxr-xr-xbin/wrappers/cryptsetup_umount5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/wrappers/cryptsetup_umount b/bin/wrappers/cryptsetup_umount
new file mode 100755
index 0000000..b186ad5
--- /dev/null
+++ b/bin/wrappers/cryptsetup_umount
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+
+# Unmount the encrypted volume mounted at the given directory name
+
+umount "/mnt/dm-crypt/$1" && rmdir "/mnt/dm-crypt/$1" && cryptsetup close "$1"