[22/29] network: dhcpcd fails to check link state for QMI interfaces

Message ID 20221201172318.3166615-22-michael.tremer@ipfire.org
State Accepted
Commit 1f568cc0edabca40d07add4e160ca642070a4678
Series [01/29] libgudev: New package |

Commit Message

Michael Tremer 1 Dec 2022, 5:23 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/initscripts/networking/red b/src/initscripts/networking/red
index 053b38405..2d68c1685 100644
--- a/src/initscripts/networking/red
+++ b/src/initscripts/networking/red
@@ -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