Commit f6f047e2 authored by Tails developers's avatar Tails developers
Browse files

Start tails-security-check as soon as Tor works.

I.e. wait to be sure that time is in Tor valid range,
rather than for HTP success.
parent 635664c1
#!/bin/sh #!/bin/sh
HTP_DIR=/var/run/htpdate TORDATE_DIR=/var/run/tordate
# wait for HTP to finish # wait for a guarantee that time is in Tor valid range
while :; do while :; do
if [ -e "$HTP_SUCCESS_FILE" ]; then if [ -e "$TORDATE_DONE_FILE" ]; then
break break
fi fi
inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$HTP_DIR" inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
done done
exec /usr/local/bin/tails-security-check exec /usr/local/bin/tails-security-check
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