This commit is contained in:
openoms
2021-09-20 19:36:19 +01:00

View File

@@ -49,17 +49,19 @@ if [ "$1" = "menu" ]; then
--yesno "\nYou can connect Sphinx App over Tor. Its build in for iOS and on Android you need to use it together with the Orbot App." 10 72 --yesno "\nYou can connect Sphinx App over Tor. Its build in for iOS and on Android you need to use it together with the Orbot App." 10 72
if [ "$?" != "1" ]; then if [ "$?" != "1" ]; then
echo "sphinxrelay_connection='tor'" >> /mnt/hdd/raspiblitz.conf echo "sphinxrelay_connection='tor'" >> /mnt/hdd/raspiblitz.conf
echo "Please wait (+25secs) ... restarting sphinx relay to use tor" echo "Please wait (+1min) ... restarting sphinx relay to use tor"
sudo systemctl restart sphinxrelay sudo systemctl restart sphinxrelay
sleep 25 sleep 60
# reload status
source <(sudo /home/admin/config.scripts/bonus.sphinxrelay.sh status)
else else
# other options (dont set sphinxrelay_connection) # other options (dont set sphinxrelay_connection)
echo "OK - keep as it is" echo "OK - keep as it is"
fi fi
clear
elif [ "${sphinxrelay_connection}" == "tor" ]; then elif [ "${sphinxrelay_connection}" == "tor" ]; then
dialog --title " Tor Info " --msgbox "\nYou are using Sphinx App over Tor. If you want to try other options you need to deinstall & reinstall the Sphinx Relay." 10 40 dialog --title " Tor Info " --msgbox "\nYou are using Sphinx App over Tor. If you want to try other options you need to deinstall & reinstall the Sphinx Relay." 10 40
clear
fi fi
extraPairInfo="" extraPairInfo=""