summaryrefslogtreecommitdiff
path: root/mount_crypt
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-01-27 16:45:29 +0100
committerPatrick Simianer <p@simianer.de>2016-01-27 16:45:29 +0100
commitb0031ab50256647d124000340ed539d19b03d9d2 (patch)
tree45a4878ee92ba4c932e6186da1be7530389ddff4 /mount_crypt
parentdca96cf1880a5262f9c22443550a43656a0d6883 (diff)
better *_crypt scripts
Diffstat (limited to 'mount_crypt')
-rwxr-xr-xmount_crypt9
1 files changed, 6 insertions, 3 deletions
diff --git a/mount_crypt b/mount_crypt
index 517c444..2483aec 100755
--- a/mount_crypt
+++ b/mount_crypt
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/zsh
. /home/pks/bin/func.zsh
check_root
@@ -8,6 +8,9 @@ if [ "$#" -ne 2 ]; then
exit
fi
-cryptsetup luksOpen $1 $2
-mount /dev/mapper/$2
+DEVICE=$1
+NAME=$2
+
+cryptsetup luksOpen $DEVICE $NAME
+mount /dev/mapper/$NAME