Blame 0136-network-net-lib.sh-fix-IPv6-route-parsing.patch
|
Harald Hoyer |
bb31e7 |
From 29b885b46e5d2a368af70031e5d52ca21b9cdd31 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
bb31e7 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
bb31e7 |
Date: Tue, 1 Sep 2015 17:25:34 +0200
|
|
Harald Hoyer |
bb31e7 |
Subject: [PATCH] network/net-lib.sh: fix IPv6 route parsing
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
(cherry picked from commit a4c47ce0ddc7f7b46c2395709cf83f731f90685b)
|
|
Harald Hoyer |
bb31e7 |
---
|
|
Harald Hoyer |
bb31e7 |
modules.d/40network/net-lib.sh | 2 +-
|
|
Harald Hoyer |
bb31e7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
bb31e7 |
|
|
Harald Hoyer |
bb31e7 |
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
bb31e7 |
index 43528e2..8096481 100755
|
|
Harald Hoyer |
bb31e7 |
--- a/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
bb31e7 |
+++ b/modules.d/40network/net-lib.sh
|
|
Harald Hoyer |
bb31e7 |
@@ -120,7 +120,7 @@ setup_net() {
|
|
Harald Hoyer |
bb31e7 |
route_to_var "$_p" || continue
|
|
Harald Hoyer |
bb31e7 |
[ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
|
|
Harald Hoyer |
bb31e7 |
ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
|
|
Harald Hoyer |
bb31e7 |
- if strstr ":" "$route_mask"; then
|
|
Harald Hoyer |
bb31e7 |
+ if strstr "$route_mask" ":"; then
|
|
Harald Hoyer |
bb31e7 |
printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \
|
|
Harald Hoyer |
bb31e7 |
> /tmp/net.route6."$netif"
|
|
Harald Hoyer |
bb31e7 |
else
|