From 13a03925cc3f2fefbfe213701095f170a827b00a Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 11 May 2024 01:06:18 +0200 Subject: [PATCH] arc: rewrite model selection exclusion Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index ec7e690a..427c728a 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -189,9 +189,7 @@ function arcModel() { else [ -z "$(grep -w "${M}" "${S_FILE}")" ] && BETA="x" || BETA="" fi - if [ ${COMPATIBLE} -eq 1 ] && [ -z "$(grep -w "${A}" "${P_FILE}")" ]; then - COMPATIBLE=0 - fi + [ -z "$(grep -w "${A}" "${P_FILE}")" ] && COMPATIBLE=0 [ ${COMPATIBLE} -eq 1 ] && echo -e "${M} \"\t$(printf "\Zb%-8s\Zn \Zb%-15s\Zn \Zb%-5s\Zn \Zb%-5s\Zn \Zb%-5s\Zn \Zb%-5s\Zn \Zb%-10s\Zn \Zb%-12s\Zn \Zb%-10s\Zn \Zb%-10s\Zn" "${CPU}" "${A}" "${DTS}" "${ARC}" "${IGPUS}" "${HBAS}" "${M_2_CACHE}" "${M_2_STORAGE}" "${USBS}" "${BETA}")\" ">>"${TMP_PATH}/menu" done <<<$(cat "${TMP_PATH}/modellist") dialog --backtitle "$(backtitle)" --colors \