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

tails-security-check-wrapper: use inotifywait to wait for htpdate success.

parent 432320fa
#!/bin/sh
HTP_DIR=/var/run/htpdate
HTP_SUCCESS_FILE="${HTP_DIR}/success"
INOTIFY_TIMEOUT=60
# wait for HTP to finish
until [ -e /var/lib/live/htp-done ]; do
sleep 1
while :; do
if [ -e "$HTP_SUCCESS_FILE" ]; then
break
fi
inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$HTP_DIR"
done
sleep 120
......
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