2011-03-09 20:50:13 +01:00
|
|
|
#!/bin/sh
|
2015-02-05 03:14:41 +01:00
|
|
|
if [ x$2 = xup ]; then
|
2011-03-09 20:50:13 +01:00
|
|
|
INET=$(/sbin/ip addr show dev $1 | /bin/grep inet)
|
2015-01-30 00:30:24 +01:00
|
|
|
qubesdb-write /qubes-netvm-external-ip "$INET"
|
2011-03-09 20:50:13 +01:00
|
|
|
fi
|
2015-02-05 03:14:41 +01:00
|
|
|
if [ x$2 = xdown ]; then
|
2015-01-30 00:30:24 +01:00
|
|
|
qubesdb-write /qubes-netvm-external-ip ""
|
2011-03-09 20:50:13 +01:00
|
|
|
fi
|