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