arc: rewrite model selection exclusion

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-11 01:06:18 +02:00
parent 7d64765ced
commit 13a03925cc

View File

@ -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 \