arc/network: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-02 20:06:24 +02:00
parent 6c7f225a49
commit 0235c8d817
2 changed files with 3 additions and 4 deletions

View File

@@ -306,7 +306,7 @@ function arcPatch() {
[ -z "${resp}" ] && return 1
if [ ${resp} -eq 1 ]; then
# Read Arc Patch from File
SN="$(readModelKey "${MODEL}" "arc.serial")"
SN="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}"
elif [ ${resp} -eq 2 ]; then
# Generate random Serial
@@ -925,7 +925,6 @@ function autopremake() {
PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")"
DT="$(readModelKey "${MODEL}" "dt")"
# Read Config for Arc Settings
KVMSUPPORT="$(readConfigKey "arc.kvm" "${USER_CONFIG_FILE}")"
EMMCBOOT="$(readConfigKey "arc.emmcboot" "${USER_CONFIG_FILE}")"
# Memory: Set mem_max_mb to the amount of installed memory to bypass Limitation
writeConfigKey "synoinfo.mem_max_mb" "${RAMMAX}" "${USER_CONFIG_FILE}"

View File

@@ -5,11 +5,11 @@ function getnet() {
if [ "${ARCPATCH}" = "true" ]; then
ARCMACNUM=1
for ETH in ${ETHX}; do
ARCMAC="$(readModelKey "${MODEL}" "arc.mac${ARCMACNUM}")"
ARCMAC=""
ARCMAC="$(readConfigKey "${MODEL}.mac${ARCMACNUM}" "${S_FILE}")"
[ -n "${ARCMAC}" ] && writeConfigKey "mac.${ETH}" "${ARCMAC}" "${USER_CONFIG_FILE}"
[ -z "${ARCMAC}" ] && break
ARCMACNUM=$((${ARCMACNUM} + 1))
ARCMAC=""
done
elif [ "${ARCPATCH}" = "false" ]; then
ETHN=$(ls /sys/class/net/ 2>/dev/null | grep eth | wc -l)