2018-07-17 11:01:04 +02:00
|
|
|
#!/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
|
2018-07-17 17:09:52 +02:00
|
|
|
pipenv run ./"$MY_BINARY" -m "$MOUNT_PATH" -v "$VERA_DRIVE_NAME" -n "$USB_DRIVE_PART_NAME" "$VERA_CONTAINER_PATH_REL" $@
|
2018-07-17 11:01:04 +02:00
|
|
|
popd > /dev/null
|