tree: add missing

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2025-01-28 20:27:08 +01:00
parent 9f3ac81146
commit 16f166d17a
2 changed files with 13 additions and 0 deletions

View File

@@ -3644,4 +3644,16 @@ function getdiskinfo() {
fi
done
writeConfigKey "device.externalcontroller" "${external_controller}" "${USER_CONFIG_FILE}"
}
###############################################################################
# Get Network Info
function getnetinfo() {
ETHX=$(ls /sys/class/net/ 2>/dev/null | grep eth)
for N in ${ETHX}; do
IPCON="$(getIP "${N}")"
[ -n "${IPCON}" ] && break
done
export IPCON="${IPCON:-noip}"
}

View File

@@ -665,6 +665,7 @@ function systemCheck () {
# Check for Arc Patch
arc_mode
[ -z "${ARCCONF}" ] && writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
getnetinfo
getdiskinfo
}