diff --git a/network/setup-ip b/network/setup-ip index d833520..a7ec8f6 100755 --- a/network/setup-ip +++ b/network/setup-ip @@ -9,7 +9,7 @@ have_qubesdb || exit 0 mac="$(/usr/bin/qubesdb-read /qubes-mac 2> /dev/null)" current_mac="$(get_mac_from_iface "$INTERFACE")" -if [ "$mac" = "$current_mac" ]; then +if [ "$mac" = "$current_mac" ] || [ "x$mac" = "x" ] ; then ip="$(/usr/bin/qubesdb-read /qubes-ip 2> /dev/null)" ip6="$(/usr/bin/qubesdb-read /qubes-ip6 2> /dev/null)" if [ "x$ip" != x ]; then @@ -132,4 +132,4 @@ __EOF__ fi fi fi -fi \ No newline at end of file +fi