From 1c5410166320ff55a25b8675b8ee2c6342d6d9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Wed, 19 Jun 2019 19:21:38 +0200 Subject: [PATCH] Handle legacy non-present /qubes-mac qubesdb entry --- network/setup-ip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/setup-ip b/network/setup-ip index 204ba5d..f7ae533 100755 --- a/network/setup-ip +++ b/network/setup-ip @@ -178,7 +178,7 @@ if [ -n "$INTERFACE" ]; then # Handle legacy values LEGACY_MAC="$(/usr/bin/qubesdb-read /qubes-mac 2> /dev/null)" - if [ "$MAC" == "$LEGACY_MAC" ]; then + if [ "$MAC" == "$LEGACY_MAC" ] || [ "x$LEGACY_MAC" == "x" ]; then if [ "x$ip" == "x" ]; then ip="$(/usr/bin/qubesdb-read /qubes-ip 2> /dev/null)" fi