From bb8e473a98989ec53bce11aa9a45ddfd58405986 Mon Sep 17 00:00:00 2001 From: B Stack Date: Mon, 25 May 2020 10:23:52 -0400 Subject: rebase veracrypt dpkg to overlay Unit193 Unit193 is still actively maintaining veracrypt dpkgs so remove my old fork and just add a stackrpms overlay for myself. --- veracrypt/debian/scripts/mount.veracrypt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 veracrypt/debian/scripts/mount.veracrypt (limited to 'veracrypt/debian/scripts') diff --git a/veracrypt/debian/scripts/mount.veracrypt b/veracrypt/debian/scripts/mount.veracrypt new file mode 100755 index 0000000..499ad9b --- /dev/null +++ b/veracrypt/debian/scripts/mount.veracrypt @@ -0,0 +1,23 @@ +#!/bin/bash +DEV="$1" +MNTPT="$2" +VCOPTIONS="" +OPTIONS="" + +shift 3 +IFS=',' +for arg in $*; do + case "$arg" in + truecrypt) VCOPTIONS=(${VCOPTIONS[*]} --truecrypt);; + system) VCOPTIONS=(${VCOPTIONS[*]} --mount-options=system);; + fs=*) VCOPTIONS=(${VCOPTIONS[*]} --filesystem=${arg#*=});; + keyfiles=*) VCOPTIONS=(${VCOPTIONS[*]} --keyfiles=${arg#*=});; + password=*) VCOPTIONS=(${VCOPTIONS[*]} --password=${arg#*=});; + pim=*) VCOPTIONS=(${VCOPTIONS[*]} --pim==${arg#*=});; + protect-hidden=*) VCOPTIONS=(${VCOPTIONS[*]} --protect-hidden=${arg#*=});; + slot=*) VCOPTIONS=(${VCOPTIONS[*]} --slot=${arg#*=});; + *) OPTIONS="${OPTIONS}${arg},";; + esac +done + +/usr/bin/veracrypt --non-interactive --text ${VCOPTIONS[*]} --fs-options="${OPTIONS%,*}" ${DEV} ${MNTPT} -- cgit