blob: 9b99e10e9294b6af6a4ab4afeac70dc03c00e106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/zsh
. $(dirname $0:A)/func.zsh
check_root
if [ "$#" -ne 1 ]; then
echo "missing args: umount_crypt <name>"
exit
fi
NAME=$1
umount /media/$NAME
cryptsetup luksClose /dev/mapper/$NAME
|