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