From b76ee77ad0c3cd36b5b5dedf676c515cd69ea28d Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 1 Jul 2024 20:12:52 +0200 Subject: [PATCH] arc: cleanup Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 452ae738..52a8122e 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -207,8 +207,7 @@ function arcModel() { done fi # Reset Model Config if changed - if [ -z "${resp}" ] || [ "${MODEL}" != "${resp}" ]; then - if [ "${CUSTOM}" == "false" ]; then + if [ "${MODEL}" != "${resp}" ]; then PRODUCTVER="" MODEL="${resp}" PLATFORM="$(grep -w "${MODEL}" "${TMP_PATH}/modellist" | awk '{print $2}' | head -n 1)" @@ -233,7 +232,7 @@ function arcModel() { writeConfigKey "ramdisk-hash" "" "${USER_CONFIG_FILE}" writeConfigKey "synoinfo" "{}" "${USER_CONFIG_FILE}" writeConfigKey "zimage-hash" "" "${USER_CONFIG_FILE}" - else + elif [ -z "${resp}" ]; then MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")" PLATFORM="$(grep -w "${MODEL}" "${TMP_PATH}/modellist" | awk '{print $2}' | head -n 1)" MODELID=$(echo ${MODEL} | sed 's/d$/D/; s/rp$/RP/; s/rp+/RP+/')