]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
network: dhcpcd fails to check link state for QMI interfaces
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 17:23:11 +0000 (17:23 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Dec 2022 17:20:46 +0000 (17:20 +0000)
When acquiring an IP address, dhcpcd seems to think that the interface
is down or does not work properly for some reason. It will
subsequentially decide to exit which is not what we want here.

Therefore this patch tells dhcpcd to ignore the link state and keep
happily running.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/networking/red

index 053b384050decb7a3dff50023fbabe7d144c5c07..2d68c1685a540bb9b87efa0fe4f1655d15589358 100644 (file)
@@ -227,7 +227,7 @@ case "${1}" in
                                ip link set "${RED_DEV}" up &>/dev/null
 
                                # Start the DHCP client
-                               dhcpcd_start "${RED_DEV}"
+                               dhcpcd_start "${RED_DEV}" --nolink
 
                                # Done
                                exit 0