Script qui permet de réinstaller tous les paquets habituel de son environnement.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.6KB

  1. #!/bin/bash
  2. #MENU
  3. menu()
  4. {
  5. echo -e "-------------------------------------------------------------------"
  6. echo -e "${background0}${gras}\t\t${gris01}## MENU PRINCIAL ##${neutre}"
  7. echo -e "-------------------------------------------------------------------\n"
  8. echo -e "${bleu01}\t1 = Mise à jour du système${neutre}\n"
  9. echo -e "${rouge01}\t2 = Installation des paquets${neutre}\n"
  10. echo -e "${orange01}\t3 = Paquets AUR${neutre}\n"
  11. echo -e "${vert01}\t4 = Configuration${neutre}\n"
  12. echo -e "${vert02}\t5 = Tout est OK ? Lancer directement votre installation${neutre}\n"
  13. echo -e "-------------------------------------------------------------------"
  14. echo -e "${bleu01}${background1}${gras}\t0 = Quitter${neutre}${gris01} 00 = Lisez-moi 000 = logs${neutre}"
  15. echo -e "-------------------------------------------------------------------\n"
  16. read -p " Entrez votre choix : " choise
  17. return $choise
  18. }
  19. #Traitement du menu
  20. menuCase ()
  21. {
  22. case "$choise" in
  23. 0)
  24. exit 0
  25. ;;
  26. 00)
  27. clear
  28. echo -e "\n\n-------------------------------------------------------------------\n"
  29. cat README.md
  30. echo -e "\n\n-------------------------------------------------------------------\n"
  31. continuer
  32. ;;
  33. 000)
  34. cat readme.txt
  35. ;;
  36. 1)
  37. while [ $subChoise1!=0 ] ; do
  38. clear
  39. subMenu1
  40. subMenu1Case
  41. done
  42. ;;
  43. 2)
  44. while [ $subChoise2!=0 ] ; do
  45. clear
  46. subMenu2
  47. subMenu2Case
  48. done
  49. ;;
  50. 3)
  51. while [ $subChoise3!=0 ] ; do
  52. clear
  53. subMenu3
  54. subMenu3Case
  55. done
  56. ;;
  57. 4)
  58. while [ $subChoise4!=0 ] ; do
  59. clear
  60. subMenu4
  61. subMenu4Case
  62. done
  63. ;;
  64. 5)
  65. installSystemDirect
  66. ;;
  67. *)
  68. errorChoise
  69. ;;
  70. esac
  71. }