From 519e82b7c03f3a12cf05b142e38ca84ca70b7f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 4 Dec 2020 12:28:27 +0100 Subject: [PATCH] init/functions: do not guess 'eth0' as Qubes-managed interface ... if it doesn't exist. The /qubes-mac qubesdb entry is present on Qubes 4.1, but not 4.0. It is ok to depend on it here, but keep safer fallback if this code would need to be backported. --- init/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/functions b/init/functions index b9c44c4..ba05485 100644 --- a/init/functions +++ b/init/functions @@ -141,7 +141,7 @@ get_qubes_managed_iface() { qubes_iface="$(get_iface_from_mac "$mac")" if [ "x$qubes_iface" != "x" ]; then echo "$qubes_iface" - else + elif [ -e /sys/class/net/eth0 ]; then echo eth0 fi }