]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network-legacy/ifup: fix typo when calling dhclient --timeout
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 8 Jan 2020 15:20:29 +0000 (16:20 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 14 Jan 2020 08:16:23 +0000 (09:16 +0100)
modules.d/35network-legacy/ifup.sh

index 5331c4617b23033a8c384db656eb92e0140bc6d9..736a112880f1e586ca0e36811e7a23b0d4347669 100755 (executable)
@@ -50,7 +50,7 @@ do_dhcp() {
     while [ $_COUNT -lt $_DHCPRETRY ]; do
         info "Starting dhcp for interface $netif"
         dhclient "$@" \
-                 ${_timeout:+-timeout $_timeout} \
+                 ${_timeout:+--timeout $_timeout} \
                  -q \
                  -cf /etc/dhclient.conf \
                  -pf /tmp/dhclient.$netif.pid \