Commit a56e049a authored by Tails developers's avatar Tails developers

Run tails-update-frontend at session login time, after waiting for Tor to work.

parent 52cc0be9
[Desktop Entry]
Name=tails-update-frontend
GenericName=check available Tails updates
Comment=check available Tails updates
Exec=/usr/local/bin/tails-update-frontend-wrapper
Terminal=false
Type=Application
Categories=GNOME;X-GNOME-PersonalSettings;
NoDisplay=true
MimeType=application/x-tails-update-frontend;
#!/bin/sh
TORDATE_DIR=/var/run/tordate
TORDATE_DONE_FILE="${TORDATE_DIR}/done"
INOTIFY_TIMEOUT=60
# wait for the $TORDATE_DIR directory to appear
while [ ! -d "$TORDATE_DIR" ]; do
sleep 10
done
# wait for a guarantee that time is in Tor valid range
while ! [ -e "$TORDATE_DONE_FILE" ]; do
inotifywait -q -t "$INOTIFY_TIMEOUT" -e create --format %w%f "$TORDATE_DIR"
done
exec /usr/bin/tails-update-frontend
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