From 0f9a312fcfa3f34567f838964fc911bc65ca1d26 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 18 Jan 2012 19:34:09 +0100 Subject: [PATCH] vm/netwatcher: ignore error when no external IP present This can be set later - when network in NetVM is connected. --- network/qubes_netwatcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/qubes_netwatcher b/network/qubes_netwatcher index f250cc19..afd7cdaa 100755 --- a/network/qubes_netwatcher +++ b/network/qubes_netwatcher @@ -13,7 +13,7 @@ trap 'exit 0' SIGTERM while true; do NET_DOMID=$(/usr/bin/xenstore-read qubes_netvm_domid) if [[ -n "$NET_DOMID" ]] && [[ $NET_DOMID -gt 0 ]]; then - UNTRUSTED_NETCFG=$(/usr/bin/xenstore-read /local/domain/$NET_DOMID/qubes_netvm_external_ip) + UNTRUSTED_NETCFG=$(/usr/bin/xenstore-read /local/domain/$NET_DOMID/qubes_netvm_external_ip || :) # UNTRUSTED_NETCFG is not parsed in any way # thus, no sanitization ready # but be careful when passing it to other shell scripts