Revert "init: remove sortnetif for now"

This reverts commit 9e482783f0.
This commit is contained in:
AuxXxilium 2024-10-25 14:49:37 +02:00
parent 4d47d4dfb3
commit 905131ae8e

View File

@ -90,6 +90,10 @@ fi
if [ -n "${ARC_BRANCH}" ]; then
writeConfigKey "arc.branch" "${ARC_BRANCH}" "${USER_CONFIG_FILE}"
fi
# Sort network interfaces
if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
fi
# Read/Write IP/Mac to config
ETHX="$(ls /sys/class/net 2>/dev/null | grep eth)"
for ETH in ${ETHX}; do