core-agent-linux/network/30-qubes-external-ip
2014-11-07 09:59:41 -05:00

9 lines
209 B
Bash
Executable File

#!/bin/sh
if [ x$2 == xup ]; then
INET=$(/sbin/ip addr show dev $1 | /bin/grep inet)
xenstore-write qubes-netvm-external-ip "$INET"
fi
if [ x$2 == xdown ]; then
xenstore-write qubes-netvm-external-ip ""
fi