Commit 66929d8b authored by Tails developers's avatar Tails developers
Browse files

Save the environemt used by NetworkManager hooks.

We can easily get the DNS server (and other info) obtained through
DHCP this way.
parent 80c593ae
#!/bin/sh
# We don't start Tor automatically so *this* is the time
# when it is supposed to start.
# Run only when the interface is not "lo":
if [ $1 = "lo" ]; then
exit 0
fi
# Run whenever an interface gets "up", not otherwise:
if [ $2 != "up" ]; then
exit 0
fi
export > /var/lib/NetworkManager/env
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