network: dhcpcd fails to check link state for QMI interfaces

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>
This commit is contained in:
Michael Tremer
2022-12-01 17:23:11 +00:00
committed by Peter Müller
parent cb4b6f433e
commit 1f568cc0ed

View 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