Handle errors for non-present ip gateways

This commit is contained in:
Frédéric Pierret (fepitre) 2019-06-22 17:40:20 +02:00
parent cf03ae3e2a
commit dba1020b4c
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -180,10 +180,10 @@ if [ -n "$INTERFACE" ]; then
ip6="$(/usr/bin/qubesdb-read /qubes-ip6 2> /dev/null)"
fi
if [ -z "$gateway" ]; then
gateway="$(/usr/bin/qubesdb-read /qubes-gateway)"
gateway="$(/usr/bin/qubesdb-read /qubes-gateway 2> /dev/null)"
fi
if [ -z "$gateway6" ]; then
gateway6="$(/usr/bin/qubesdb-read /qubes-gateway6)"
gateway6="$(/usr/bin/qubesdb-read /qubes-gateway6 2> /dev/null)"
fi
fi