obosdi-pkg/install/xorg/video-drivers/proprietary

33 lines
906 B
Text
Raw Normal View History

2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
options=()
2016-04-03 15:53:36 -06:00
options+=("virtualbox-guest-utils" "(For Virtualbox)" off)
2015-08-20 14:37:06 -06:00
options+=("nvidia" "" off)
2018-06-04 14:34:09 -06:00
options+=("nvidia-390xx" "" off)
#options+=("nvidia-340xx" "" off) #DEAD ?
2016-04-03 15:53:02 -06:00
options+=("nvidia-dkms" "(For custom kernel)" off)
2018-06-04 14:34:09 -06:00
options+=("nvidia-390xx-dkms" "(For custom kernel)" off)
#options+=("nvidia-340xx-dkms" "(For custom kernel)" off) #DEAD ?
2015-08-20 14:37:06 -06:00
#options+=("catalyst" "(AUR)" off)
#options+=("catalyst-total-hd234k" "(AUR)" off)
sel=$(whiptail --backtitle "$apptitle" --title "XOrg video drivers :" --checklist "Choose video drivers for your system :" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
case $itm in
"catalyst" | \
"catalyst-total-hd234k") aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0