mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
fix error on microcode and gpu selection
This commit is contained in:
parent
ef381090fe
commit
b2cbb5e2f2
|
@ -535,10 +535,10 @@ echo -ne "
|
||||||
"
|
"
|
||||||
# determine processor type and install microcode
|
# determine processor type and install microcode
|
||||||
proc_type=$(lscpu)
|
proc_type=$(lscpu)
|
||||||
if grep -E "GenuineIntel" <<< ${proc_type}; then
|
if echo "${proc_type}" | grep -E "GenuineIntel"; then
|
||||||
echo "Installing Intel microcode"
|
echo "Installing Intel microcode"
|
||||||
pacman -S --noconfirm --needed intel-ucode
|
pacman -S --noconfirm --needed intel-ucode
|
||||||
elif grep -E "AuthenticAMD" <<< ${proc_type}; then
|
elif echo "${proc_type}" | grep -E "AuthenticAMD"; then
|
||||||
echo "Installing AMD microcode"
|
echo "Installing AMD microcode"
|
||||||
pacman -S --noconfirm --needed amd-ucode
|
pacman -S --noconfirm --needed amd-ucode
|
||||||
fi
|
fi
|
||||||
|
@ -550,15 +550,18 @@ echo -ne "
|
||||||
"
|
"
|
||||||
# Graphics Drivers find and install
|
# Graphics Drivers find and install
|
||||||
gpu_type=$(lspci)
|
gpu_type=$(lspci)
|
||||||
if grep -E "NVIDIA|GeForce" <<< ${gpu_type}; then
|
if echo ${gpu_type} | grep -E "NVIDIA|GeForce"; then
|
||||||
|
echo "Installing NVIDIA drivers: nvidia-lts"
|
||||||
pacman -S --noconfirm --needed nvidia-lts
|
pacman -S --noconfirm --needed nvidia-lts
|
||||||
nvidia-xconfig
|
elif echo ${gpu_type} | grep 'VGA' | grep -E "Radeon|AMD"; then
|
||||||
elif lspci | grep 'VGA' | grep -E "Radeon|AMD"; then
|
echo "Installing AMD drivers: xf86-video-amdgpu"
|
||||||
pacman -S --noconfirm --needed xf86-video-amdgpu
|
pacman -S --noconfirm --needed xf86-video-amdgpu
|
||||||
elif grep -E "Integrated Graphics Controller" <<< ${gpu_type}; then
|
elif echo ${gpu_type} | grep -E "Integrated Graphics Controller"; then
|
||||||
|
echo "Installing Intel drivers:"
|
||||||
|
pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
|
||||||
|
elif echo ${gpu_type} | grep -E "Intel Corporation UHD"; then
|
||||||
|
echo "Installing Intel UHD drivers:"
|
||||||
pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
|
pacman -S --noconfirm --needed libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
|
||||||
elif grep -E "Intel Corporation UHD" <<< ${gpu_type}; then
|
|
||||||
pacman -S --needed --noconfirm libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils lib32-mesa
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -ne "
|
echo -ne "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user