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