Update xero-plasma.sh
This commit is contained in:
parent
5ba0dfb457
commit
4713fc0a49
1 changed files with 3 additions and 4 deletions
|
@ -77,15 +77,13 @@ if [[ -n "${lspci_output:-}" ]]; then
|
||||||
"$lspci_output"
|
"$lspci_output"
|
||||||
echo
|
echo
|
||||||
# Prompt user to choose NVIDIA driver type
|
# Prompt user to choose NVIDIA driver type
|
||||||
read -p "Select driver to install. Enter 'r' for regular or 'o' for Open-DKMS, otherwise 'i' for Intel : " driver_type
|
read -p "Select driver to install. Enter 'r' for regular or 'o' for Open-DKMS : " driver_type
|
||||||
|
|
||||||
# Check user input and install corresponding drivers
|
# Check user input and install corresponding drivers
|
||||||
if [[ $driver_type == "r" ]]; then
|
if [[ $driver_type == "r" ]]; then
|
||||||
install_regular_dkms
|
install_regular_dkms
|
||||||
elif [[ $driver_type == "o" ]]; then
|
elif [[ $driver_type == "o" ]]; then
|
||||||
install_open_dkms
|
install_open_dkms
|
||||||
elif [[ $driver_type == "i" ]]; then
|
|
||||||
install_intel
|
|
||||||
else
|
else
|
||||||
echo "Invalid input. Please enter 'r' or 'o'."
|
echo "Invalid input. Please enter 'r' or 'o'."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -103,7 +101,8 @@ if [[ -n "${lspci_output:-}" ]]; then
|
||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
echo "${LF}Hello ${USER:=$(whoami)}, you seem to have no nVidia GPUs."
|
echo "${LF}Hello ${USER:=$(whoami)}, no nVidia GPUs detected. Defaulting to Intel drivers."
|
||||||
|
install_intel
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "##############################################"
|
echo "##############################################"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue