From b0031ab50256647d124000340ed539d19b03d9d2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 27 Jan 2016 16:45:29 +0100 Subject: better *_crypt scripts --- umount_crypt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'umount_crypt') diff --git a/umount_crypt b/umount_crypt index 5d6d1e1..489d8d3 100755 --- a/umount_crypt +++ b/umount_crypt @@ -4,10 +4,12 @@ check_root if [ "$#" -ne 2 ]; then - echo "missing arg.: umount_crypt " + echo "missing args: umount_crypt " exit fi -umount $2 -cryptsetup luksClose /dev/mapper/$1 +NAME=$1 + +umount /media/$NAME +cryptsetup luksClose /dev/mapper/$NAME -- cgit v1.2.3