fix _sort_netif check

This commit is contained in:
Ing 2024-05-31 03:01:21 +08:00
parent 3682eec05c
commit 2ba25de442

View File

@ -77,8 +77,9 @@ if [ -f "${PART2_PATH}/GRUB_VER" ]; then
fi
if [ ! "LOCALBUILD" = "${LOADER_DISK}" ]; then
if arrayExistItem "sortnetif:" $(readConfigMap "addons" "${USER_CONFIG_FILE}"); then
_sort_netif "$(readConfigKey "addons.sortnetif" "${USER_CONFIG_FILE}")"
fi
for ETH in ${ETHX}; do
[ "${ETH::4}" = "wlan" ] && connectwlanif "${ETH}" && sleep 1
MACR="$(cat /sys/class/net/${ETH}/address 2>/dev/null | sed 's/://g')"