Install tor on mesh peers, but disable it by default

This commit is contained in:
Bob Mottram 2017-11-02 12:56:54 +00:00
parent 15bbcccec7
commit f816b7076f
2 changed files with 7 additions and 0 deletions

View File

@ -682,6 +682,9 @@ initialise_mesh() {
chroot "$rootdir" apt-get -yq install apt-transport-https
# install tor as a possible way of routing traffic between internet gateways
chroot "$rootdir" apt-get -yq install tor
configure_firewall
install_avahi
install_batman

View File

@ -1012,6 +1012,10 @@ if [ -f $MESH_INSTALL_SETUP ]; then
chown ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/.config
fi
systemctl tor stop
systemctl tor disable
echo $'TOR disabled' >> $INSTALL_LOG
#tomb slam all
tmp_ram_disk 100
enable_predictable_device_names