以太网启用之后,多等一段时间,避免未生效

lowmem
Matthew 3 weeks ago
parent ce2b36422c
commit 8468978f19

@ -105,7 +105,7 @@ echo "IP configuration before UP: $PRE_UP_IP (1=configured, 0=missing)"
# Enable interface and wait for UP
echo "Bringing up interface..."
/system/bin/ip link set eth0 up
sleep 0.2
sleep 1
# Check if IP was lost after interface UP (common issue on MTK devices)
POST_UP_IP=$(/system/bin/ip addr show eth0 | grep -c "inet $ETH_IP")

Loading…
Cancel
Save