diff options
author | B Stack <bgstack15@gmail.com> | 2020-05-25 10:23:52 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-05-25 10:23:52 -0400 |
commit | bb8e473a98989ec53bce11aa9a45ddfd58405986 (patch) | |
tree | 8678259b80948ffcf319cd04bdc07027f2522045 /veracrypt/debian/scripts | |
parent | Merge branch 'freefilesync-bump' into 'master' (diff) | |
download | stackrpms-bb8e473a98989ec53bce11aa9a45ddfd58405986.tar.gz stackrpms-bb8e473a98989ec53bce11aa9a45ddfd58405986.tar.bz2 stackrpms-bb8e473a98989ec53bce11aa9a45ddfd58405986.zip |
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.
Diffstat (limited to 'veracrypt/debian/scripts')
-rwxr-xr-x | veracrypt/debian/scripts/mount.veracrypt | 23 |
1 files changed, 23 insertions, 0 deletions
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} |