mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Reverses order of --non-interactive and --text to actually make it work, also fix --pim working.
24 lines
854 B
Bash
Executable File
24 lines
854 B
Bash
Executable File
#!/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 --text --non-interactive ${VCOPTIONS[*]} --fs-options="${OPTIONS%,*}" ${DEV} ${MNTPT}
|