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
8e889f91
Commit
8e889f91
authored
Nov 27, 2014
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have tor_bootstrap_progress echo 0 if no matching log line is found (Closes:
#8257
).
parent
4e3d193a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh
...t_local-includes/usr/local/lib/tails-shell-library/tor.sh
+6
-2
No files found.
config/chroot_local-includes/usr/local/lib/tails-shell-library/tor.sh
View file @
8e889f91
...
...
@@ -34,8 +34,12 @@ tor_control_setconf() {
}
tor_bootstrap_progress
()
{
grep
-o
"
\[
notice
\]
Bootstrapped [[:digit:]]
\+
%:"
${
TOR_LOG
}
|
\
tail
-n1
|
sed
"s|
\[
notice
\]
Bootstrapped
\(
[[:digit:]]
\+\)
%:|
\1
|"
RES
=
$(
grep
-o
"
\[
notice
\]
Bootstrapped [[:digit:]]
\+
%:"
${
TOR_LOG
}
|
\
tail
-n1
|
sed
"s|
\[
notice
\]
Bootstrapped
\(
[[:digit:]]
\+\)
%:|
\1
|"
)
if
[
-z
"
$RES
"
]
;
then
RES
=
0
fi
echo
-n
"
$RES
"
}
# Potential Tor bug: it seems like using this version makes Tor get
...
...
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