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
5f823308
Commit
5f823308
authored
Oct 25, 2015
by
kytv
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try using the original method
parent
1910cce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
config/chroot_local-includes/usr/local/sbin/tails-i2p
config/chroot_local-includes/usr/local/sbin/tails-i2p
+2
-12
No files found.
config/chroot_local-includes/usr/local/sbin/tails-i2p
View file @
5f823308
...
...
@@ -28,7 +28,7 @@ I2P_BOOTSTRAP_TIMEOUT=210
# After the router infos (RIs) are downloaded from the reseed servers
# it can take 3-5 minutes for a tunnel to be built, e.g.
# once we get to this point I2P should be ready to be used.
I2P_TUNNEL_BUILD_TIMEOUT
=
1
20
I2P_TUNNEL_BUILD_TIMEOUT
=
4
20
startup_failure
()
{
/usr/local/sbin/tails-notify-user
\
...
...
@@ -62,19 +62,10 @@ bootstrap_failure() {
}
wait_until_i2p_has_bootstrapped
()
{
# XXX workaround upstream bug
# The old check of seeing whether port 4444 is open isn't currently
# reliable. Although a tunnel may not be built yet the port may still be
# open.
# There's nearly zero chance that there'll be a tunnel ready before three
# minutes have elapsed.
sleep
${
I2P_TUNNEL_BUILD_TIMEOUT
}
# initial 3 minute wait
wait_until
${
I2P_TUNNEL_BUILD_TIMEOUT
}
i2p_has_bootstrapped
# potentially 3 additional minutes
wait_until
${
I2P_TUNNEL_BUILD_TIMEOUT
}
i2p_has_bootstrapped
}
notify_bootstrap_success
()
{
touch
/run/i2p/i2p_has_bootstrapped
/usr/local/sbin/tails-notify-user
\
"
`
gettext
\"
I2P is ready
\"
`
"
\
"
`
gettext
\"
You can now access services on I2P.
\"
`
"
...
...
@@ -100,7 +91,6 @@ case "${1}" in
;;
stop
)
exec
service i2p stop
rm
-f
/run/i2p/i2p_has_bootstrapped
;;
*
)
echo
"invalid argument '
${
1
}
'"
>
&2
...
...
anonym
@anonym
mentioned in issue
#10185 (closed)
·
May 14, 2020
mentioned in issue
#10185 (closed)
mentioned in issue #10185
Toggle commit list
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