unixwz0r

steam-setup

Dec 30th, 2014
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. #!/bin/bash
  2. #-------------------------------------------------------------------------------
  3. #Tux Hat Linux Installer Script
  4. #Developer: Gary Perreault
  5. #-------------------------------------------------------------------------------
  6.  
  7. #Global Settings
  8.  
  9. UPDATEPACMAN="pacman -Syy"
  10. STEAM="pacman -S steam ttf-liberation"
  11. MULTILIB="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.  
  20. # External Function Files that is required
  21. if [[ -f `pwd`/gfuncs.sh ]]; then
  22. source gfuncs.sh
  23. else
  24. echo "Error missing file: gfuncs.sh - Required for installer"
  25. exit 1
  26. fi
  27.  
  28. if [[ -f `pwd`/diskfuncs.sh ]]; then
  29. source diskfuncs.sh
  30. else
  31. echo "Error missing file: diskfuncs.sh - Required for installer"
  32. exit 1
  33. fi
  34.  
  35. prepmenu() {
  36. print_title8
  37. echo ""
  38. echo "${Bold}${White}${Underline}Tux Hat Linux Steam Setup${Reset}"
  39. echo ""
  40. echo "${Bold}${White} 1. Uncomment Multilib if it's not configured $TASK1"
  41. echo "${Bold}${White} 2. Update Pacman to refresh $TASK2"
  42. echo "${Bold}${White} 3. Install Steam 32Bit only, needs multilib $TASK3"
  43. echo "${Bold}${White} Q. Quit "
  44. print_askopt
  45. read mnuopt
  46.  
  47. case $mnuopt in
  48. 1)
  49. $MULTILIB
  50. TASK1="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  51. pause_function
  52. prepmenu
  53. ;;
  54. 2)
  55. $UPDATEPACMAN
  56. TASK2="${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  57. pause_function
  58. prepmenu
  59. ;;
  60. 3)
  61. $STEAM
  62. TASK3"${Bold}${White}[${Bold}${Green}X${Bold}${White}] is Set"
  63. pause_function
  64. prepmenu
  65. ;;
  66. q)
  67. echo ""
  68. echo "${Purple}Now ${Cyan}the ${Blue}steam ${White}client ${Yellow}is ${Green}setup!${Reset}"
  69. echo ""
  70. esac
  71.  
  72. }
  73. prepmenu
Advertisement
Add Comment
Please, Sign In to add comment