Commit 9464768e authored by Tails developers's avatar Tails developers

Rewrite tor_is_working to not rely purely on caches-microdescs* files.

In Tor 0.2.5.x, these files appear during bootstrap, at a time when Tor is not
fully working yet.
parent 5515feae
......@@ -48,7 +48,10 @@ tor_bootstrap_progress() {
#}
tor_is_working() {
[ -e $TOR_DESCRIPTORS ] || [ -e $NEW_TOR_DESCRIPTORS ]
[ -e $TOR_DESCRIPTORS ] || [ -e $NEW_TOR_DESCRIPTORS ] || return 1
TOR_BOOTSTRAP_PROGRESS=$(tor_bootstrap_progress)
[ -n "$TOR_BOOTSTRAP_PROGRESS" ] && [ "$TOR_BOOTSTRAP_PROGRESS" -eq 100 ]
}
tor_append_to_torrc () {
......
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