pika-drivers/data/generate_driver_definitions.sh
Ward Nakchbandi (Cosmic Fusion) 1f10329065 add amdgpu check
2023-06-29 22:52:19 +03:00

15 lines
321 B
Bash
Executable File

#! /bin/bash
UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)"
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
DRIVERS=emScuM8rsa6kuhMePtR5bT8s4z9s
fi
echo $DRIVERS | tr " " "\n"