Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
a56e049a
Commit
a56e049a
authored
Jul 23, 2012
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tails-update-frontend at session login time, after waiting for Tor to work.
parent
52cc0be9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
config/chroot_local-includes/etc/xdg/autostart/tails-update-frontend.desktop
...-includes/etc/xdg/autostart/tails-update-frontend.desktop
+10
-0
config/chroot_local-includes/usr/local/bin/tails-update-frontend-wrapper
...ocal-includes/usr/local/bin/tails-update-frontend-wrapper
+17
-0
No files found.
config/chroot_local-includes/etc/xdg/autostart/tails-update-frontend.desktop
0 → 100644
View file @
a56e049a
[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;
config/chroot_local-includes/usr/local/bin/tails-update-frontend-wrapper
0 → 100755
View file @
a56e049a
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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