2011-03-09 20:50:13 +01:00
|
|
|
#!/bin/sh
|
|
|
|
if [ x$2 == xup ]; then
|
|
|
|
INET=$(/sbin/ip addr show dev $1 | /bin/grep inet)
|
2013-03-14 04:23:32 +01:00
|
|
|
/usr/bin/xenstore-write qubes-netvm-external-ip "$INET"
|
2011-03-09 20:50:13 +01:00
|
|
|
fi
|
|
|
|
if [ x$2 == xdown ]; then
|
2013-03-14 04:23:32 +01:00
|
|
|
/usr/bin/xenstore-write qubes-netvm-external-ip ""
|
2011-03-09 20:50:13 +01:00
|
|
|
fi
|