blob: 5743731e71ae1d3a2d7df17fdb287344c02a6f80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/zsh
. /home/pks/bin/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
|