blob: 4b15e13999d1d4ec18acbcddfc51f1e31dafb308 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Write Bridge
sudo wget https://AmirrezaFiroozi.github.io/traktor/torrcV3 -O /etc/tor/torrc > /dev/null
# Wait for tor to establish connection
echo "Tor is trying to establish a connection. This may take long for some minutes. Please wait" | sudo tee /var/log/tor/log
bootstraped='n'
sudo systemctl restart tor
while [ $bootstraped == 'n' ]; do
if sudo cat /var/log/tor/log | grep "Bootstrapped 100%: Done"; then
bootstraped='y'
else
sleep 1
fi
done
|