network: cleanup

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-03-28 16:41:00 +01:00
parent d43fb06545
commit c0738e3823

View File

@@ -55,7 +55,6 @@ function getnet() {
ETHX=$(ls /sys/class/net/ 2>/dev/null | grep eth) || true
# Get actual IP
for ETH in ${ETHX}; do
IPCON="$(readConfigKey "ip.${ETH}" "${USER_CONFIG_FILE}")"
[ -z "${IPCON}" ] && IPCON="$(getIP ${ETH})"
IPCON="$(getIP ${ETH})"
[ -n "${IPCON}" ] && break
done