Finished automatic mount draft

This commit is contained in:
Kevin Veen-Birkenbach [aka. Frantz]
2020-05-20 15:03:50 +02:00
parent a03a4adc96
commit 596aea41cb
5 changed files with 65 additions and 27 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
echo "Unmount encrypted storages"
set_device_mount_partition_and_mapper_paths
info "Unmount $mapper_path..."
sudo umount $mapper_path &&
sudo cryptsetup luksClose $mapper_path ||
error
success "Successfull :)"