VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/FreeBSD/veracrypt_install_template.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Setup/FreeBSD/veracrypt_install_template.sh')
-rw-r--r--src/Setup/FreeBSD/veracrypt_install_template.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Setup/FreeBSD/veracrypt_install_template.sh b/src/Setup/FreeBSD/veracrypt_install_template.sh
index 2d5dbcf9..1ebc7672 100644
--- a/src/Setup/FreeBSD/veracrypt_install_template.sh
+++ b/src/Setup/FreeBSD/veracrypt_install_template.sh
@@ -66,61 +66,61 @@ then
GUI=0
XMESSAGE=0
XTERM=0
GTERM=0
KTERM=0
fi
show_message()
{
if [ $GUI -eq 1 ]
then
if [ $XMESSAGE -eq 1 ]
then
xmessage -center -buttons OK -default OK "$*"
else
if [ $TTY -eq 1 ]
then
echo "$*"
else
if [ $XTERM -eq 1 ]
then
xterm -T 'VeraCrypt Setup' -e sh -c "echo $*; read A"
else
if [ $GTERM -eq 1 ]
then
gnome-terminal --title='VeraCrypt Setup' -e "sh -c \"echo $*; read A\""
else
if [ $KTERM -eq 1 ]
then
- konsole --title 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo $*; read A"
+ konsole --qwindowtitle 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo $*; read A"
fi
fi
fi
fi
fi
else
echo "$*"
fi
}
show_exit_message()
{
show_message "$*"
if [ $XMESSAGE -eq 0 ]
then
printf 'Press Enter to exit... '
read A
fi
}
# License extraction
trap 'rm -f $LICENSE $PACKAGE; exit 1' HUP INT QUIT TERM
LICENSE=$(mktemp)
cat >$LICENSE <<_LICENSE_END
VeraCrypt License
Software distributed under this license is distributed on an "AS
IS" BASIS WITHOUT WARRANTIES OF ANY KIND. THE AUTHORS AND
@@ -1047,55 +1047,55 @@ _INFO
fi
show_message "$(cat <<_INFO
Uninstalling VeraCrypt:
-----------------------
To uninstall VeraCrypt, please run 'veracrypt-uninstall.sh'.
_INFO
)"
[ $GUI -eq 0 ] && echo
fi
if [ $INSTALL -eq 1 ]
then
INSTALLED=0
if [ $GUI -eq 1 ]
then
if [ $XTERM -eq 1 ]
then
exec xterm -T 'VeraCrypt Setup' -e sh -c "echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A"
else
if [ $GTERM -eq 1 ]
then
exec gnome-terminal --title='VeraCrypt Setup' -e "sh -c \"echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A\""
else
if [ $KTERM -eq 1 ]
then
- exec konsole --title 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A"
+ exec konsole --qwindowtitle 'VeraCrypt Setup' --caption 'VeraCrypt Setup' -e sh -c "echo Installing package...; $SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE; rm -f $PACKAGE; echo; echo Press Enter to exit...; read A"
fi
fi
fi
else
echo 'Installing package...'
$SUDO $PACKAGE_INSTALLER $PACKAGE_INSTALLER_OPTS $PACKAGE && INSTALLED=1
if [ $INSTALLED -eq 1 ]
then
show_exit_message ''
fi
fi
rm -f $PACKAGE
if [ $INSTALLED -ne 1 ]
then
show_exit_message 'Error: VeraCrypt installation failed'
exit 1
fi
else
show_exit_message "Installation package '$PACKAGE_NAME' extracted and placed in '$PACKAGE_DIR'"
fi
exit 0