From 1f10329065a1b397159ca2407623f318c4ca7d02 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" Date: Thu, 29 Jun 2023 22:52:19 +0300 Subject: [PATCH] add amdgpu check --- data/generate_driver_definitions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/generate_driver_definitions.sh b/data/generate_driver_definitions.sh index 8081518..6695248 100755 --- a/data/generate_driver_definitions.sh +++ b/data/generate_driver_definitions.sh @@ -1,6 +1,10 @@ #! /bin/bash UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)" -AMDGPU_DRIVERS="explosives" + +if inxi -G | grep " loaded" | grep "amdgpu" &> /dev/null +then + AMDGPU_DRIVERS="explosives" +fi DRIVERS="$(printf "$UBUNTU_DRIVERS\n$AMDGPU_DRIVERS")" if [[ -z $DRIVERS ]] then