From 293f266842b9c2391b9fb51f0c9d9face771668f Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 25 Oct 2024 16:05:39 +0200 Subject: [PATCH] tree: cleanup Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 8 -------- files/initrd/opt/arc/init.sh | 4 ---- 2 files changed, 12 deletions(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 9b9dc6b6..513df079 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -72,14 +72,6 @@ function addonSelection() { writeConfigKey "addons.\"${ADDON}\"" "" "${USER_CONFIG_FILE}" done ADDONSINFO="$(readConfigEntriesArray "addons" "${USER_CONFIG_FILE}")" - if readConfigMap "addons" "${USER_CONFIG_FILE}" | grep -q "sortnetif"; then - MACLIST="" - for ETH in ${ETHX}; do - MAC="$(cat /sys/class/net/${ETH}/address | sed 's/://g' | tr '[:lower:]' '[:upper:]')" - MACLIST="${MACLIST} ${MAC}" - done - writeConfigKey "addons.sortnetif" "${MACLIST// /,}" "${USER_CONFIG_FILE}" - fi dialog --backtitle "$(backtitle)" --title "DSM Addons" \ --msgbox "DSM Addons selected:\n${ADDONSINFO}" 7 70 } diff --git a/files/initrd/opt/arc/init.sh b/files/initrd/opt/arc/init.sh index da859b60..bfcae7f8 100755 --- a/files/initrd/opt/arc/init.sh +++ b/files/initrd/opt/arc/init.sh @@ -90,10 +90,6 @@ 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