network: add alternate way to get ip

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-03-08 16:15:57 +01:00
parent d0104cb79e
commit 5e07d1c545

View File

@@ -109,5 +109,6 @@ ETHX=$(ls /sys/class/net/ | grep -v lo) || true
# Get actual IP
for ETH in ${ETHX}; do
IPCON="$(readConfigKey "ip.${ETH}" "${USER_CONFIG_FILE}")"
[ -z "${IPCON}" ] && IPCON="$(getIP ${ETH})"
[ -n "${IPCON}" ] && break
done