Added ask GPU
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user