9 lines
227 B
Plaintext
9 lines
227 B
Plaintext
|
#!/bin/sh
|
||
|
if [ x$2 == xup ]; then
|
||
|
INET=$(/sbin/ip addr show dev $1 | /bin/grep inet)
|
||
|
/usr/bin/xenstore-write qubes_netvm_external_ip "$INET"
|
||
|
fi
|
||
|
if [ x$2 == xdown ]; then
|
||
|
/usr/bin/xenstore-write qubes_netvm_external_ip ""
|
||
|
fi
|