Blame SOURCES/0231-40network-Fix-the-syntax-to-correct-the-judgment-sen.patch

a56a5e
From 0b7fad28375c6156ad2d8159c3adbedef0b53740 Mon Sep 17 00:00:00 2001
a56a5e
From: Minfei Huang <mhuang@redhat.com>
a56a5e
Date: Mon, 1 Dec 2014 12:37:06 +0800
a56a5e
Subject: [PATCH] 40network: Fix the syntax to correct the judgment sentence
a56a5e
a56a5e
In the judgment sentence, it will print the following warning message,
a56a5e
becasuse of lacking the blank on the left of ']'.
a56a5e
a56a5e
/lib/net-lib.sh: line 110: [: missing `]'
a56a5e
a56a5e
Signed-off-by: Minfei Huang <mhuang@redhat.com>
a56a5e
(cherry picked from commit c440d302f1cdfc0336e9086c7b9016356f961936)
a56a5e
---
a56a5e
 modules.d/40network/net-lib.sh | 2 +-
a56a5e
 1 file changed, 1 insertion(+), 1 deletion(-)
a56a5e
a56a5e
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
1755ca
index f0850207..9c6b9dae 100755
a56a5e
--- a/modules.d/40network/net-lib.sh
a56a5e
+++ b/modules.d/40network/net-lib.sh
a56a5e
@@ -107,7 +107,7 @@ setup_net() {
a56a5e
     # add static route
a56a5e
     for _p in $(getargs rd.route); do
a56a5e
         route_to_var "$_p" || continue
a56a5e
-        [ -n "$route_dev" ] && [ "$route_dev" != "$netif"] && continue
a56a5e
+        [ -n "$route_dev" ] && [ "$route_dev" != "$netif" ] && continue
a56a5e
         ip route add "$route_mask" ${route_gw:+via "$route_gw"} ${route_dev:+dev "$route_dev"}
a56a5e
         if strstr ":" "$route_mask"; then
a56a5e
             printf -- "%s\n" "$route_mask ${route_gw:+via $route_gw} ${route_dev:+dev $route_dev}" \