Commit df63ebd8 authored by Tails developers's avatar Tails developers
Browse files

Autostart iceweasel only when the network is up and Tor is running.

parent 79f898d3
#! /bin/sh
# Run only when the interface is not "lo":
if [ $1 = "lo" ]; then
exit 0
# Run whenever an interface gets "up", not otherwise:
if [ $2 != "up" ]; then
exit 0
# There's nothing to do if Iceweasel is already running
if pidof firefox-bin 1>/dev/null 2>&1; then
exit 0
. /etc/live/config.d/username
export DISPLAY=':0.0'
export XAUTHORITY="`echo /var/run/gdm3/auth-for-${LIVE_USERNAME}-*/database`"
exec /bin/su -c iceweasel &
\ No newline at end of file
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