Fix enable tor regression

This commit is contained in:
Jason Mehring 2014-10-26 14:46:20 -04:00
parent cd19220993
commit 4686898519
2 changed files with 8 additions and 8 deletions

View File

@ -84,11 +84,11 @@ popd
pushd /etc
sudo rm -f resolv.conf
sudo ln -s resolv.conf.backup resolv.conf
sudo cp -p resolv.conf.backup resolv.conf
popd
# Enable Tor
if [ "${1}" == "whonix-gateway" ]; then
if [ "${1}" == "--torgateway" ]; then
sudo sed -i 's/#DisableNetwork 0/DisableNetwork 0/g' /etc/tor/torrc
fi

View File

@ -38,12 +38,12 @@ fi
# ------------------------------------------------------------------------------
# Restore whonix resolv.conf
# ------------------------------------------------------------------------------
if [ -L "$INSTALLDIR/etc/resolv.conf" ]; then
pushd "$INSTALLDIR/etc"
sudo rm -f resolv.conf
sudo ln -s resolv.conf.anondist resolv.conf
popd
fi
pushd "$INSTALLDIR/etc"
{
rm -f resolv.conf
cp -p resolv.conf.anondist resolv.conf
}
popd
# --------------------------------------------------------------------------
# Copy over any extra files that may be needed that are located in