add amdgpu check

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-06-29 22:52:19 +03:00
parent f452bc3c5f
commit 1f10329065

View File

@ -1,6 +1,10 @@
#! /bin/bash #! /bin/bash
UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)" UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)"
if inxi -G | grep " loaded" | grep "amdgpu" &> /dev/null
then
AMDGPU_DRIVERS="explosives" AMDGPU_DRIVERS="explosives"
fi
DRIVERS="$(printf "$UBUNTU_DRIVERS\n$AMDGPU_DRIVERS")" DRIVERS="$(printf "$UBUNTU_DRIVERS\n$AMDGPU_DRIVERS")"
if [[ -z $DRIVERS ]] if [[ -z $DRIVERS ]]
then then