Added ask GPU

This commit is contained in:
2025-03-25 13:52:24 +01:00
parent 1dd9229bae
commit 1d073c0554

View File

@@ -123,6 +123,7 @@ setup_pacman() {
# Function name: GPU setup # Function name: GPU setup
# Description: Setup GPU depending on the available devices # Description: Setup GPU depending on the available devices
gpu_setup() { gpu_setup() {
if whiptail --title "Setup GPU" --yesno "Would you like to setup GPU?" 10 60; then
detected_gpu=$(lspci | grep -Ei "vga|3d|display") detected_gpu=$(lspci | grep -Ei "vga|3d|display")
case "$detected_gpu" in case "$detected_gpu" in
*NVIDIA*) *NVIDIA*)
@@ -161,7 +162,7 @@ gpu_setup() {
sudo pacman -S --needed --noconfirm libva-nvidia-driver sudo pacman -S --needed --noconfirm libva-nvidia-driver
fi fi
if (whiptail --title "Install Cuda" --yesno "Would you like to install Cuda?" 10 60) then if (whiptail --title "Install Cuda" --yesno "Would you like to install Cuda?" 10 60); then
sudo pacman -S --needed --noconfirm cuda sudo pacman -S --needed --noconfirm cuda
fi fi
;; ;;
@@ -177,6 +178,7 @@ gpu_setup() {
sudo pacman -S --needed --noconfirm intel-media-driver vulkan-intel sudo pacman -S --needed --noconfirm intel-media-driver vulkan-intel
;; ;;
esac esac
fi
} }