2023-06-29 21:48:30 +02:00
|
|
|
#! /bin/bash
|
|
|
|
UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)"
|
2023-06-29 21:52:19 +02:00
|
|
|
|
|
|
|
if inxi -G | grep " loaded" | grep "amdgpu" &> /dev/null
|
|
|
|
then
|
|
|
|
AMDGPU_DRIVERS="explosives"
|
|
|
|
fi
|
2023-06-29 21:48:30 +02:00
|
|
|
DRIVERS="$(printf "$UBUNTU_DRIVERS\n$AMDGPU_DRIVERS")"
|
|
|
|
if [[ -z $DRIVERS ]]
|
|
|
|
then
|
|
|
|
DRIVERS=emScuM8rsa6kuhMePtR5bT8s4z9s
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $DRIVERS | tr " " "\n"
|