9130636c88
Conflicts: misc/qubes-r2.list.in misc/qubes-trigger-sync-appmenus.sh network/30-qubes-external-ip network/qubes-firewall vm-systemd/network-proxy-setup.sh vm-systemd/prepare-dvm.sh vm-systemd/qubes-sysinit.sh
9 lines
209 B
Bash
Executable File
9 lines
209 B
Bash
Executable File
#!/bin/sh
|
|
if [ x$2 == xup ]; then
|
|
INET=$(/sbin/ip addr show dev $1 | /bin/grep inet)
|
|
qubesdb-write /qubes-netvm-external-ip "$INET"
|
|
fi
|
|
if [ x$2 == xdown ]; then
|
|
qubesdb-write /qubes-netvm-external-ip ""
|
|
fi
|