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
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