summaryrefslogtreecommitdiff
path: root/umount_crypt
diff options
context:
space:
mode:
Diffstat (limited to 'umount_crypt')
-rwxr-xr-xumount_crypt9
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