Commit 463388f4 authored by Tails developers's avatar Tails developers
Browse files

Wait for Tor to have fully bootstrapped before checking for upgrades (partly closes: #6728).

parent 513eff19
......@@ -60,15 +60,10 @@ See\"`"
### Main
# wait for the $TORDATE_DIR directory to appear
while [ ! -d "$TORDATE_DIR" ]; do
sleep 10
while ! sudo -n -u debian-tor /usr/local/sbin/tor-has-bootstrapped ; do
sleep 10
# wait for a guarantee that time is in Tor valid range
while ! [ -e "$TORDATE_DONE_FILE" ]; do
inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
check_free_memory "$MIN_MEMFREE" "$MIN_TOTAL_MEMFREE"
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