Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tails
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
947
Issues
947
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tails
tails
Commits
53852ced
Commit
53852ced
authored
Mar 21, 2012
by
Tails developers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more intelligent when waiting for Tor to restart.
parent
b07d1e26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
config/chroot_local-includes/usr/local/sbin/unsafe-browser
config/chroot_local-includes/usr/local/sbin/unsafe-browser
+8
-2
No files found.
config/chroot_local-includes/usr/local/sbin/unsafe-browser
View file @
53852ced
...
...
@@ -118,8 +118,14 @@ maybe_restart_tor () {
# Tor from bootstrapping, and a restart is the fastest way to get
# wheels turning)
if
!
tor_is_working
;
then
service tor restart 2>/dev/null
until
nc
-z
localhost 9051 2>/dev/null
;
do
sleep
1
;
done
if
!
service tor restart 2>/dev/null
;
then
error
"
`
gettext
\"
Failed to restart Tor.
\"
`
"
fi
local
counter
=
0
until
[
"
${
counter
}
"
-ge
10
]
||
nc
-z
localhost 9051 2>/dev/null
;
do
sleep
1
counter
=
$((${
counter
}
+
1
))
done
/etc/NetworkManager/dispatcher.d/60-vidalia.sh clearnet up 2>/dev/null
fi
}
...
...
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