From dadab7c09520a0c363c3ba3451503bd056cc19c3 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 28 Oct 2015 15:56:18 +0100 Subject: *_crypt more generic --- umount_crypt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'umount_crypt') diff --git a/umount_crypt b/umount_crypt index 54f7cc0..a2bfbfb 100755 --- a/umount_crypt +++ b/umount_crypt @@ -3,6 +3,11 @@ . /home/pks/bin/func.zsh check_root -umount /mnt -cryptsetup luksClose /dev/mapper/remote_backup +if [ "$#" -ne 2 ]; then + echo "missing arg." + exit +fi + +umount $2 +cryptsetup luksClose /dev/mapper/$1 -- cgit v1.2.3