arc: reduce code

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

View File

@ -183,9 +183,7 @@ function arcModel() {
if [ ${SATACONTROLLER} -eq 0 ] && [ "${EXTERNALCONTROLLER}" = "false" ] && [ ! "${A}" = "epyc7002" ]; then
COMPATIBLE=0
fi
if [ -z "$(grep -w "${M}" "${S_FILE}")" ]; then
COMPATIBLE=0
fi
[ -z "$(grep -w "${M}" "${S_FILE}")" ] && COMPATIBLE=0
else
[ -z "$(grep -w "${M}" "${S_FILE}")" ] && BETA="x" || BETA=""
fi