Blame SOURCES/0331-network-net-lib.sh-fix-IPv6-route-parsing.patch

64b87c
From a4c47ce0ddc7f7b46c2395709cf83f731f90685b Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Tue, 1 Sep 2015 17:25:34 +0200
64b87c
Subject: [PATCH] network/net-lib.sh: fix IPv6 route parsing
64b87c
64b87c
---
64b87c
 modules.d/40network/net-lib.sh | 2 +-
64b87c
 1 file changed, 1 insertion(+), 1 deletion(-)
64b87c
64b87c
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
1755ca
index 6034a091..9d22ec1c 100755
64b87c
--- a/modules.d/40network/net-lib.sh
64b87c
+++ b/modules.d/40network/net-lib.sh
64b87c
@@ -121,7 +121,7 @@ setup_net() {
64b87c
         route_to_var "$_p" || continue
64b87c
         [ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
64b87c
         ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
64b87c
-        if strstr ":" "$route_mask"; then
64b87c
+        if strstr "$route_mask" ":"; then
64b87c
             printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \
64b87c
                 > /tmp/net.route6."$netif"
64b87c
         else