summaryrefslogtreecommitdiff
path: root/mount_crypt
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-28 15:56:18 +0100
committerPatrick Simianer <p@simianer.de>2015-10-28 15:56:18 +0100
commitdadab7c09520a0c363c3ba3451503bd056cc19c3 (patch)
tree89dff5a87347a2a48de12120cab920d1b024088e /mount_crypt
parent7b9bdb0cc235237ba6f038dc8f58cd4b50fe754f (diff)
*_crypt more generic
Diffstat (limited to 'mount_crypt')
-rwxr-xr-xmount_crypt9
1 files changed, 7 insertions, 2 deletions
diff --git a/mount_crypt b/mount_crypt
index d4a6bc4..dc1d59d 100755
--- a/mount_crypt
+++ b/mount_crypt
@@ -3,6 +3,11 @@
. /home/pks/bin/func.zsh
check_root
-cryptsetup luksOpen /dev/disk/by-id/scsi-SATA_WDC_WD1002FAEX-_WD-WCAW32441082-part1 remote_backup
-mount /dev/mapper/remote_backup /mnt/
+if [ "$#" -ne 2 ]; then
+ echo "missing args."
+ exit
+fi
+
+cryptsetup luksOpen $1 $2
+mount /dev/mapper/$2