Blame 0029-network-dhclient-script.sh-remove-bashism.patch
|
Harald Hoyer |
0840a3 |
From 78362bc5fea4fe640e7a767ebfbef7e3f5f57eba Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
0840a3 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
0840a3 |
Date: Wed, 8 Jul 2015 08:49:02 +0200
|
|
Harald Hoyer |
0840a3 |
Subject: [PATCH] network/dhclient-script.sh: remove bashism
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
---
|
|
Harald Hoyer |
0840a3 |
modules.d/40network/dhclient-script.sh | 2 +-
|
|
Harald Hoyer |
0840a3 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
index 2550caf..c75ac89 100755
|
|
Harald Hoyer |
0840a3 |
--- a/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
+++ b/modules.d/40network/dhclient-script.sh
|
|
Harald Hoyer |
0840a3 |
@@ -47,7 +47,7 @@ setup_interface() {
|
|
Harald Hoyer |
0840a3 |
${preferred_lft:+preferred_lft ${preferred_lft}}
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
if [ -n "$gw" ] ; then
|
|
Harald Hoyer |
0840a3 |
- if [ "$mask" == "255.255.255.255" ] ; then
|
|
Harald Hoyer |
0840a3 |
+ if [ "$mask" = "255.255.255.255" ] ; then
|
|
Harald Hoyer |
0840a3 |
# point-to-point connection => set explicit route to gateway
|
|
Harald Hoyer |
0840a3 |
echo ip route add $gw dev $netif > /tmp/net.$netif.gw
|
|
Harald Hoyer |
0840a3 |
fi
|