add amdgpu check
This commit is contained in:
parent
f452bc3c5f
commit
1f10329065
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user