summaryrefslogtreecommitdiff
path: root/bin/wrappers/cryptsetup_mount
blob: e755daf3972c6896ea5ef27dbb46f86c5c18073a (plain) (blame)
1
2
3
4
5
6
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"