2020-05-20 10:35:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
source "$(dirname "$(readlink -f "${0}")")/../../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
|
|
|
|
2020-05-20 15:03:50 +02:00
|
|
|
set_device_mount_partition_and_mapper_paths(){
|
2020-05-20 10:35:37 +02:00
|
|
|
set_device_path &&
|
|
|
|
mapper_name="encrypteddrive-$device" &&
|
|
|
|
mapper_path="/dev/mapper/$mapper_name" &&
|
|
|
|
mount_path="/media/$mapper_name" &&
|
2020-05-20 15:03:50 +02:00
|
|
|
partition_path="$device_path""1" &&
|
2020-05-20 10:35:37 +02:00
|
|
|
info "mapper name set to : $mapper_name" &&
|
|
|
|
info "mapper path set to : $mapper_path" ||
|
|
|
|
info "mount path set to : $mount_path" ||
|
|
|
|
error
|
|
|
|
}
|