misc/veracrypt/verausbdrive.sh.example

25 lines
684 B
Bash
Executable File

#!/bin/bash
########################################################
# Configuration
########################################################
USB_DRIVE_PART_NAME="KINGSTON"
VERA_DRIVE_NAME="NO NAME"
VERA_CONTAINER_PATH_REL="VERSCHLUESSELT/GTIKlausuren"
MOUNT_PATH="/Volumes/"
PYTHON_VERA_WRAPPER_BIN=~/ls1-misc/veracrypt/verausbdrive.py
########################################################
set -e
MY_BASEPATH="$(dirname "$PYTHON_VERA_WRAPPER_BIN")"
MY_BINARY="$(basename "$PYTHON_VERA_WRAPPER_BIN")"
pushd "$MY_BASEPATH" > /dev/null
pipenv run ./"$MY_BINARY" -m "$MOUNT_PATH" -v "$VERA_DRIVE_NAME" -n "$USB_DRIVE_PART_NAME" "$VERA_CONTAINER_PATH_REL" $@
popd > /dev/null