File vif-route.patch of Package xen.11298

References: bsc#985503

--- xen-4.5.3-testing/tools/hotplug/Linux/vif-route.orig	2016-08-01 11:39:12.616651211 -0600
+++ xen-4.5.3-testing/tools/hotplug/Linux/vif-route	2016-08-01 11:43:23.456658916 -0600
@@ -35,7 +35,7 @@ case "${command}" in
         ;;
 esac
 
-if [ "${ip}" ] ; then
+if [ "${ip}" ] && [ "${ipcmd}" ] ; then
     # If we've been given a list of IP addresses, then add routes from dom0 to
     # the guest using those addresses.
     for addr in ${ip} ; do
openSUSE Build Service is sponsored by