Handle default value for get_qubes_managed_iface

This commit is contained in:
Frédéric Pierret (fepitre) 2019-05-16 22:18:12 +02:00
parent b18efe3257
commit da162d7615
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -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() {