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