From 27fddadc2286c245464358016c434ad923ce87b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Tue, 21 May 2019 17:32:05 +0200 Subject: [PATCH] setup-ip: handle default conf if /qubes-mac returns empty value --- network/setup-ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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