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 pushd /etc
sudo rm -f resolv.conf sudo rm -f resolv.conf
sudo ln -s resolv.conf.backup resolv.conf sudo cp -p resolv.conf.backup resolv.conf
popd popd
# Enable Tor # Enable Tor
if [ "${1}" == "whonix-gateway" ]; then if [ "${1}" == "--torgateway" ]; then
sudo sed -i 's/#DisableNetwork 0/DisableNetwork 0/g' /etc/tor/torrc sudo sed -i 's/#DisableNetwork 0/DisableNetwork 0/g' /etc/tor/torrc
fi fi

View File

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