From 7e905e33bc55d142b4fd32c28cc2be99dfdd3f0b Mon Sep 17 00:00:00 2001 From: A Farzat Date: Thu, 24 Oct 2024 23:31:41 +0900 Subject: Add useful wrapper scripts --- bin/wrappers/cryptsetup_umount | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/wrappers/cryptsetup_umount (limited to 'bin/wrappers/cryptsetup_umount') 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" -- cgit v1.2.3-70-g09d2