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