You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-linux-template-builder/scripts_debian/wheezy+whonix-gateway/files/usr/lib/whonix/qubes-whonixsetup

24 lines
720 B

#/bin/bash
# XXX: TODO:
# - Make sure we can't just run this from setup-ip
# - Alternatives? instead of deleting dialog?
#
# INSTALLATION NOTES:
# - Make sure /etc/tor/torrc is disabled initially
# - Make sure /var/lib/whonix/do_once/whonixsetup.done does not exist
# so repo questions will be asked
# - /etc/xdg/autostart/qubes-whonixsetup must be in place
# - this file must be in place
# - gdialog must have over-written dialog
# - patches to setup-ip:
# - bring eth1 up
# - remove old code that was trying to get setup working
grep "^DisableNetwork 0$" /etc/tor/torrc || {
sudo systemctl stop whonixcheck
sudo systemctl stop tor
sudo /usr/lib/whonix/setup-ip
sudo /usr/bin/whonixsetup
}