|
|
@ -105,7 +105,7 @@ echo "IP configuration before UP: $PRE_UP_IP (1=configured, 0=missing)"
|
|
|
|
# Enable interface and wait for UP
|
|
|
|
# Enable interface and wait for UP
|
|
|
|
echo "Bringing up interface..."
|
|
|
|
echo "Bringing up interface..."
|
|
|
|
/system/bin/ip link set eth0 up
|
|
|
|
/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)
|
|
|
|
# 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")
|
|
|
|
POST_UP_IP=$(/system/bin/ip addr show eth0 | grep -c "inet $ETH_IP")
|
|
|
|