tails-security-check-wrapper 351 Bytes
Newer Older
1 2
#!/bin/sh

3 4
TORDATE_DIR=/var/run/tordate
TORDATE_DONE_FILE="${TORDATE_DIR}/done"
5 6
INOTIFY_TIMEOUT=60

7
# wait for a guarantee that time is in Tor valid range
8
while :; do
9
   if [ -e "$TORDATE_DONE_FILE" ]; then
10 11
      break
   fi
12
   inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
13 14
done

15
exec /usr/local/bin/tails-security-check