diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 85753829..8f437442 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -371,7 +371,9 @@ function arcVersion() { initConfigKey "addons.sensors" "" "${USER_CONFIG_FILE}" fi if [ "${PLATFORM}" = "apollolake" ] || [ "${PLATFORM}" = "geminilake" ]; then - initConfigKey "addons.i915" "" "${USER_CONFIG_FILE}" + if [ -n "${IGPUID}" ]; then grep -iq "${IGPUID}" ${ARC_PATH}/include/i915ids && IGPU="all" || IGPU="epyc7002"; else IGPU=""; fi + [ "${IGPU}"="all" ] && initConfigKey "addons.i915" "" "${USER_CONFIG_FILE}" || true + fi fi if echo "${PAT_URL}" 2>/dev/null | grep -q "7.2.2"; then initConfigKey "addons.allowdowngrade" "" "${USER_CONFIG_FILE}"