Unverified Commit d5805b4e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Check CPU vendor (#982)

parent 1dc15ce2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -8,7 +8,9 @@ set -Eeuo pipefail
: "${DISPLAY:="none"}"  # Display type
: "${RENDERNODE:="/dev/dri/renderD128"}"  # Render node

if [[ "$GPU" != [Yy1]* ]] || [[ "$ARCH" != "amd64" ]]; then
CPU_VENDOR=$(lscpu | awk '/Vendor ID/{print $3}')

if [[ "$GPU" != [Yy1]* ]] || [[ "$CPU_VENDOR" != "GenuineIntel" ]] || [[ "$ARCH" != "amd64" ]]; then

  [[ "${DISPLAY,,}" == "none" ]] && VGA="none"
  DISPLAY_OPTS="-display $DISPLAY -vga $VGA"
+4 −4

File changed.

Contains only whitespace changes.