Handle legacy non-present /qubes-mac qubesdb entry

This commit is contained in:
Frédéric Pierret (fepitre) 2019-06-19 19:21:38 +02:00
parent 325eff2b13
commit 1c54101663
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -178,7 +178,7 @@ if [ -n "$INTERFACE" ]; then
# Handle legacy values # Handle legacy values
LEGACY_MAC="$(/usr/bin/qubesdb-read /qubes-mac 2> /dev/null)" 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 if [ "x$ip" == "x" ]; then
ip="$(/usr/bin/qubesdb-read /qubes-ip 2> /dev/null)" ip="$(/usr/bin/qubesdb-read /qubes-ip 2> /dev/null)"
fi fi