17094c
From d20eb7b7b2a50f29ac02bd6b6d80113d495849ed Mon Sep 17 00:00:00 2001
17094c
From: Lukas Nykryn <lnykryn@redhat.com>
17094c
Date: Wed, 8 Jan 2020 16:20:29 +0100
17094c
Subject: [PATCH] network-legacy/ifup: fix typo when calling dhclient --timeout
17094c
17094c
(cherry picked from commit 212043f94dde1693d777e933945138747537f12f)
17094c
17094c
Resolves: #1787620
17094c
---
17094c
 modules.d/35network-legacy/ifup.sh | 2 +-
17094c
 1 file changed, 1 insertion(+), 1 deletion(-)
17094c
17094c
diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh
17094c
index bfb57ad5..16b950be 100755
17094c
--- a/modules.d/35network-legacy/ifup.sh
17094c
+++ b/modules.d/35network-legacy/ifup.sh
17094c
@@ -50,7 +50,7 @@ do_dhcp() {
17094c
     while [ $_COUNT -lt $_DHCPRETRY ]; do
17094c
         info "Starting dhcp for interface $netif"
17094c
         dhclient "$@" \
17094c
-                 ${_timeout:+-timeout $_timeout} \
17094c
+                 ${_timeout:+--timeout $_timeout} \
17094c
                  -q \
17094c
                  -1 \
17094c
                  -cf /etc/dhclient.conf \
17094c