From dba1020b4c4a3708e29a5726f491cce9f69e0ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Sat, 22 Jun 2019 17:40:20 +0200 Subject: [PATCH] Handle errors for non-present ip gateways --- network/setup-ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/setup-ip b/network/setup-ip index 8c8a613..6f87d37 100755 --- a/network/setup-ip +++ b/network/setup-ip @@ -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