summaryrefslogtreecommitdiff
path: root/umount_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 /umount_crypt
parentdca96cf1880a5262f9c22443550a43656a0d6883 (diff)
better *_crypt scripts
Diffstat (limited to 'umount_crypt')
-rwxr-xr-xumount_crypt8
1 files changed, 5 insertions, 3 deletions
diff --git a/umount_crypt b/umount_crypt
index 5d6d1e1..489d8d3 100755
--- a/umount_crypt
+++ b/umount_crypt
@@ -4,10 +4,12 @@
check_root
if [ "$#" -ne 2 ]; then
- echo "missing arg.: umount_crypt <name> </mount/point/>"
+ echo "missing args: umount_crypt <name>"
exit
fi
-umount $2
-cryptsetup luksClose /dev/mapper/$1
+NAME=$1
+
+umount /media/$NAME
+cryptsetup luksClose /dev/mapper/$NAME