2014-10-14 16:02:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2014-10-16 16:03:05 +00:00
|
|
|
# Source external scripts
|
2014-10-14 16:02:12 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
. $SCRIPTSDIR/vars.sh
|
2014-10-14 21:04:42 +00:00
|
|
|
. ./umount_kill.sh >/dev/null
|
2014-10-14 16:02:12 +00:00
|
|
|
|
2014-10-16 16:03:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Configurations
|
|
|
|
# ------------------------------------------------------------------------------
|
2014-10-14 16:02:12 +00:00
|
|
|
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
|
|
|
|
set -x
|
2014-10-16 16:03:05 +00:00
|
|
|
else
|
|
|
|
set -e
|
2014-10-14 16:02:12 +00:00
|
|
|
fi
|
|
|
|
|
2014-10-16 16:03:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------------------
|
2014-10-14 16:02:12 +00:00
|
|
|
if [ -f "$INSTALLDIR/tmp/.prepared_whonix" -a ! -f "$INSTALLDIR/tmp/.prepared_whonix_custom_configurations" ]; then
|
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
# Install Custom Configurations
|
|
|
|
# --------------------------------------------------------------------------
|
|
|
|
echo "10.152.152.10" > "$INSTALLDIR/etc/whonix-netvm-gateway"
|
|
|
|
touch "$INSTALLDIR/tmp/.prepared_whonix_custom_configurations"
|
|
|
|
fi
|