Commit 826eb34d authored by Tails developers's avatar Tails developers
Browse files

Use shell library in the Unsafe Browser.

parent cff55ff9
......@@ -16,9 +16,9 @@ CHROOT=${CONF_DIR}/chroot
OFFENDING_ADDONS="xul-ext-foxyproxy-standard xul-ext-torbutton xul-ext-firegpg
xul-ext-cookie-monster xul-ext-noscript xul-ext-monkeysphere"
# Import tor_is_working()
. /usr/local/lib/tails-shell-library/
LANG_CODE="$(echo ${LANG} | head -c 2)"
......@@ -189,14 +189,6 @@ show_shutdown_notification () {
notify-send -t 10000 "${title}" "${body}"
tor_is_working() {
# FIXME: the approach is stolen from is_tor_working() in the 20-time
# NM hook -- we should move things like this to a shell script library
# FIXME: how to determine this reliably? this approach doesn't work
# if $TOR_DIR is persistent.
maybe_restart_tor () {
# Restart Tor if it's not working (a captive portal may have prevented
# Tor from bootstrapping, and a restart is the fastest way to get
Supports Markdown
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