diff options
author | Patrick Simianer <p@simianer.de> | 2015-10-28 15:56:18 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-10-28 15:56:18 +0100 |
commit | dadab7c09520a0c363c3ba3451503bd056cc19c3 (patch) | |
tree | 89dff5a87347a2a48de12120cab920d1b024088e /umount_crypt | |
parent | 7b9bdb0cc235237ba6f038dc8f58cd4b50fe754f (diff) |
*_crypt more generic
Diffstat (limited to 'umount_crypt')
-rwxr-xr-x | umount_crypt | 9 |
1 files changed, 7 insertions, 2 deletions
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 |