diff options
Diffstat (limited to 'config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh')
-rwxr-xr-x | config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh b/config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh index c06ae7d..6139a45 100755 --- a/config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh +++ b/config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh @@ -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 () { |