Commit e9750a62 authored by Tails developers's avatar Tails developers

Wait for Tor to bootstrap before telling it's ready

Let's use the same code as /usr/local/bin/iceweasel to determine when Tor is
ready. Otherwise the "Tor is ready" message shows up too early and starting
Iceweasel still tells you "Tor is not ready".
parent 9dfaf605
......@@ -19,6 +19,14 @@ export LANG
tor_has_bootstrapped() {
sudo -n -u debian-tor /usr/local/sbin/tor-has-bootstrapped
while ! tor_has_bootstrapped; do
sleep 1
/usr/local/sbin/tails-notify-user \
"`gettext \"Tor is ready\"`" \
"`gettext \"You can now access the Internet.\"`"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment