From da162d76152facc080e7fdfcb6a5a2b5cb2fb9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Thu, 16 May 2019 22:18:12 +0200 Subject: [PATCH] Handle default value for get_qubes_managed_iface --- init/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/functions b/init/functions index 4f099dd..29573a7 100644 --- a/init/functions +++ b/init/functions @@ -140,7 +140,11 @@ get_qubes_managed_iface() { local qubes_iface mac="$(qubesdb-read /qubes-mac)" qubes_iface="$(get_iface_from_mac "$mac")" - echo "$qubes_iface" + if [ "x$qubes_iface" != "x" ]; then + echo "$qubes_iface" + else + echo eth0 + fi } initialize_home() {