Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
d9676c5b
Commit
d9676c5b
authored
Oct 01, 2011
by
Tails developers
Browse files
tails-security-check-wrapper: use inotifywait to wait for htpdate success.
parent
432320fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/usr/local/bin/tails-security-check-wrapper
View file @
d9676c5b
#!/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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment