fixed cusred amdgpu entries
This commit is contained in:
parent
120045beb6
commit
ab464df431
@ -1,23 +1,21 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
### Get traditional ubuntu-driver list
|
### Get traditional ubuntu-driver list
|
||||||
UBUNTU_DRIVERS="$(ubuntu-drivers list | grep -vi -server)"
|
DRIVERS="$(ubuntu-drivers list | grep -vi -server)"
|
||||||
|
|
||||||
### Check if the amdgpu module is loaded
|
### Check if the amdgpu module is loaded
|
||||||
### advanced micro devices graphics cards with "radeon" module only do not support the additional drivers
|
### advanced micro devices graphics cards with "radeon" module only do not support the additional drivers
|
||||||
if inxi -G | grep " loaded" | grep "amdgpu" &> /dev/null
|
if inxi -G | grep driver | grep amdgpu &> /dev/null
|
||||||
then
|
then
|
||||||
AMDGPU_DRIVERS="$(echo -e "pika-rocm-meta\nvulkan-amdgpu-pro\namf-amdgpu-pro\namdvlk\nopencl-legacy-amdgpu-pro-icd\namdgpu-pro-oglp")"
|
DRIVERS="$DRIVERS pika-rocm-meta vulkan-amdgpu-pro amf-amdgpu-pro amdvlk opencl-legacy-amdgpu-pro-icd amdgpu-pro-oglp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Check for xbox equipment
|
### Check for xbox equipment
|
||||||
if lsusb | grep -i xbox &> /dev/null
|
if lsusb | grep -i xbox &> /dev/null
|
||||||
then
|
then
|
||||||
XONE_DRIVERS="$(echo -e "xone-dkms")"
|
DRIVERS="$DRIVERS xone-dkms xpadneo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Merge all drivers together
|
|
||||||
DRIVERS="$(printf "$UBUNTU_DRIVERS\n$AMDGPU_DRIVERS\n$XONE_DRIVERS")"
|
|
||||||
|
|
||||||
### If no drivers were found set them to random hash to trigger no drivers needed dialog in gui app
|
### If no drivers were found set them to random hash to trigger no drivers needed dialog in gui app
|
||||||
if [[ -z $DRIVERS ]]
|
if [[ -z $DRIVERS ]]
|
||||||
then
|
then
|
||||||
@ -25,4 +23,4 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
### Print result
|
### Print result
|
||||||
echo $DRIVERS | tr " " "\n"
|
echo -e "$DRIVERS" | tr ' ' '\n' | grep "\S"
|
||||||
|
Loading…
Reference in New Issue
Block a user