From 46b67d2b72ac87b4c81cf02807f99a985d77f110 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakov <7954832+dimerr@users.noreply.github.com> Date: Sun, 8 Nov 2026 19:01:13 +0000 Subject: [PATCH] S40network: do not run udhcpc on an eth0 that cannot be opened A board without a PHY still gets an eth0 from a MAC driver such as the V83x sunxi-gmac, but opening it fails. busybox udhcpc then gets a read error from every poll, logs "read error: Network is down, reopening socket" and starts over. It only backgrounds on a poll timeout, so -b never takes effect, S40network never returns and getty never starts. Try to open eth0 first and skip ifup when that fails. Close it again before ifup, which sets hwaddress. --- general/overlay/etc/init.d/S40network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/general/overlay/etc/init.d/S40network b/general/overlay/etc/init.d/S40network index d4eb925575..04679ad197 100755 --- a/general/overlay/etc/init.d/S40network +++ b/general/overlay/etc/init.d/S40network @@ -287,7 +287,7 @@ start() { if [ -n "$dev" ]; then set_wireless else - ifup eth0 + ip link set eth0 up 2>/dev/null && ip link set eth0 down && ifup eth0 fi }