qubes-linux-template-builder/scripts_debian/wheezy+whonix-gateway/99_custom_configuration.sh
Jason Mehring f597ff760f Added ability to be able to relocate TEMPLATE_FLAVORS to any directory via configuration file
Added ability to specify more than one TEMPLATE_FLAVOR (Primary plus others)
Added ability for all TEMPLATE_FLAVORS and others to be able to hook into scripts (pre / post)
Addeed tests for above functionality
With these changes TEMPLATE_FLAVORS can be self contained and not polute code space
2014-10-21 09:12:05 -04:00

29 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# vim: set ts=4 sw=4 sts=4 et :
# ------------------------------------------------------------------------------
# Source external scripts
# ------------------------------------------------------------------------------
. $SCRIPTSDIR/vars.sh
. ./umount_kill.sh >/dev/null
# ------------------------------------------------------------------------------
# Configurations
# ------------------------------------------------------------------------------
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
set -x
else
set -e
fi
# ------------------------------------------------------------------------------
#
# ------------------------------------------------------------------------------
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