Commit bb86921a authored by Tails developers's avatar Tails developers

Add a tor-has-bootstrapped script, that the amnesia user may run as debian-tor.

parent 5d54b05e
amnesia ALL = (debian-tor) NOPASSWD: /usr/local/sbin/tor-has-bootstrapped
#!/bin/sh
# This script is designed to be run as the debian-tor user.
# The desktop user is allowed to do so with passwordless sudo.
# Import tor_bootstrap_progress()
. /usr/local/lib/tails-shell-library/tor.sh
TOR_BOOTSTRAP_PROGRESS=$(tor_bootstrap_progress)
[ -n "$TOR_BOOTSTRAP_PROGRESS" ] && [ "$TOR_BOOTSTRAP_PROGRESS" -eq 100 ]
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