summaryrefslogtreecommitdiff
path: root/umount_crypt
blob: a2bfbfb6ee3a1ceeba9b92ce5e1f4c0bd3552b3a (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."
  exit
fi

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