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

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

if [ "$#" -ne 2 ]; then
  echo "missing args."
  exit
fi

cryptsetup luksOpen $1 $2
mount /dev/mapper/$2