arc: fix model selection

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-05-11 01:04:12 +02:00
parent 504c4821a8
commit 7d64765ced

View File

@ -189,7 +189,9 @@ function arcModel() {
else
[ -z "$(grep -w "${M}" "${S_FILE}")" ] && BETA="x" || BETA=""
fi
[ ! grep -w "${A}" "${P_FILE}"] && COMPATIBLE=0
if [ ${COMPATIBLE} -eq 1 ] && [ -z "$(grep -w "${A}" "${P_FILE}")" ]; then
COMPATIBLE=0
fi
[ ${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 \