summaryrefslogtreecommitdiff
path: root/umount_crypt
blob: 5d6d1e1ff08610b66eba4ee1cdc8cd60cec2451f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/zsh

. /home/pks/bin/func.zsh
check_root

if [ "$#" -ne 2 ]; then
  echo "missing arg.: umount_crypt <name> </mount/point/>"
  exit
fi

umount $2
cryptsetup luksClose /dev/mapper/$1