#!/bin/zsh . $(dirname $0:A)/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