60-vidalia.sh 481 Bytes
Newer Older
1 2 3
#! /bin/sh

# Run only when the interface is not "lo":
4
if [ "${1}" = "lo" ]; then
5 6 7
   exit 0
fi

8 9 10 11 12 13 14 15 16
if [ "${2}" = "up" ]; then
   # Restart Vidalia because it does not automatically reconnect to the new
   # Tor instance. Use kill+start as:
   # - X-GNOME-AutoRestart does not exist in Lenny's Gnome
   # - we do not start Vidalia automatically anymore and *this* is the time
   #   when it is supposed to start.
   restart-vidalia
elif [ "${2}" = "down" ]; then
   killall vidalia
17
fi