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

3 4 5 6
HTP_DIR=/var/run/htpdate
HTP_SUCCESS_FILE="${HTP_DIR}/success"
INOTIFY_TIMEOUT=60

7
# wait for HTP to finish
8 9 10 11 12
while :; do
   if [ -e "$HTP_SUCCESS_FILE" ]; then
      break
   fi
   inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$HTP_DIR"
13 14
done

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