#!/bin/zsh . /home/pks/bin/func.zsh check_root if [ "$#" -ne 1 ]; then echo "missing args: umount_crypt " exit fi NAME=$1 umount /media/$NAME cryptsetup luksClose /dev/mapper/$NAME