#!/bin/bash . /home/pks/bin/func.zsh check_root if [ "$#" -ne 2 ]; then echo "missing args: mount_crypt " exit fi cryptsetup luksOpen $1 $2 mount /dev/mapper/$2