unixwz0r

video-setup

Dec 30th, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. #!/bin/bash
  2. #-------------------------------------------------------------------------------
  3. #Tux Hat Linux Installer Script
  4. #Developer: Gary Perreault
  5. #-------------------------------------------------------------------------------
  6.  
  7. #Global Settings
  8. UPDATEPACMAN="sudo pacman -Syy"
  9. CATALYST="yaourt -S catalyst-test"
  10. NVIDIA="yaourt -S nvidia nvidia-utils"
  11. MULTILIB="sudo nano /etc/pacman.conf"
  12.  
  13. #Varibles to Ensure Configured Usually set to Not Configured until
  14. #task is done.
  15.  
  16. TASK1="[ ] Not Set"
  17. TASK2="[ ] Not Set"
  18. TASK3="[ ] Not Set"
  19. TASK4="[ ] Not Set"
  20.  
  21. # External Function Files that is required
  22. if [[ -f `pwd`/gfuncs.sh ]]; then
  23. source gfuncs.sh
  24. else
  25. echo "Error missing file: gfuncs.sh - Required for installer"
  26. exit 1
  27. fi
  28.  
  29. if [[ -f `pwd`/diskfuncs.sh ]]; then
  30. source diskfuncs.sh
  31. else
  32. echo "Error missing file: diskfuncs.sh - Required for installer"
  33. exit 1
  34. fi
  35.  
  36. prepmenu() {
  37. print_title4
  38. echo ""
  39. echo "${Bold}${White}${Underline}Video Setup Script + Steam${Reset}"
  40. echo ""
  41. echo "${Bold}${White} 1. Uncomment multilib in pacman for 32 bit apps $TASK1"
  42. echo "${Bold}${White} 2. Update Pacman $TASK2"
  43. echo "${Bold}${White} 3. AMD Catalyst Test Drivers (Latest) $TASK3"
  44. echo "${Bold}${White} 4. nVidia Latest Drivers + Utils $TASK4"
  45. echo "${Bold}${White} Q. Quit "
  46. echo ""
  47. echo "${Bold}${Red}Multilib for Catalyst, nVidia, and Steam packages"
  48. print_askopt
  49. read mnuopt
  50.  
  51. case $mnuopt in
  52. 1)
  53. $MULTILIB
  54. TASK1="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  55. pause_function
  56. prepmenu
  57. ;;
  58. 2)
  59. $UPDATEPACMAN
  60. TASK2="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  61. pause_function
  62. prepmenu
  63. ;;
  64. 3)
  65. $CATALYST
  66. TASK3="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  67. pause_function
  68. prepmenu
  69. ;;
  70. 4)
  71. $NVIDIA
  72. TASK4="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  73. pause_function
  74. prepmenu
  75. ;;
  76. q)
  77. echo ""
  78. echo "${Purple}Video ${Cyan}Drivers ${Blue}is ${White}now ${Yellow}configured${Blue}!${Reset}"
  79. echo ""
  80. esac
  81.  
  82. }
  83. prepmenu
Advertisement
Add Comment
Please, Sign In to add comment