summaryrefslogtreecommitdiff
path: root/bin/wrappers/cryptsetup_mount
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wrappers/cryptsetup_mount')
-rwxr-xr-xbin/wrappers/cryptsetup_mount7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/wrappers/cryptsetup_mount b/bin/wrappers/cryptsetup_mount
new file mode 100755
index 0000000..e755daf
--- /dev/null
+++ b/bin/wrappers/cryptsetup_mount
@@ -0,0 +1,7 @@
+#!/usr/bin/env sh
+
+# Mounts encrypted volume into dm-crypt
+# First argument is the device name - /dev/*
+# Second argument is the directory name desired
+
+cryptsetup open "$1" "$2" && mount --mkdir "/dev/mapper/$2" "/mnt/dm-crypt/$2"