sourcesfix.sh 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. function fixsources19(){
  2. echo -e "Reinstalando fuentes (sources)"
  3. curl -o /etc/apt/sources.list https://raw.githubusercontent.com/powermx/sources/master/Ubuntu19.10/sources.list && apt-get update && apt-get upgrade -y
  4. echo -e "Reinstalacion completada"
  5. echo -e "\033[1;31mPRESIONE ENTER PARA CONTINUAR\033[0m"
  6. read -p " "
  7. menu
  8. }
  9. function fixsources18(){
  10. echo -e "Reinstalando fuentes (sources)"
  11. curl -o /etc/apt/sources.list https://raw.githubusercontent.com/powermx/sources/master/ubuntu18.04/sources.list && apt-get update && apt-get upgrade -y
  12. echo -e "Reinstalacion completada"
  13. echo -e "\033[1;31mPRESIONE ENTER PARA CONTINUAR\033[0m"
  14. read -p " "
  15. menu
  16. }
  17. function fixsources16(){
  18. echo -e "Reinstalando fuentes (sources)"
  19. curl -o /etc/apt/sources.list https://raw.githubusercontent.com/powermx/sources/master/ubuntu16.04/sources.list && apt-get update && apt-get upgrade -y
  20. echo -e "Reinstalacion completada"
  21. echo -e "\033[1;31mPRESIONE ENTER PARA CONTINUAR\033[0m"
  22. read -p " "
  23. menu
  24. }
  25. function fixsources(){
  26. clear
  27. if [[ $1 == "" ]]
  28. then
  29. figlet -p -f slant < /root/name | lolcat
  30. echo -e "\033[1;37m 【 ★ ChumoGH Packet 2020 ★ 】\033[0m"
  31. echo -e "[\033[1;31m-\033[1;33m]\033[1;30m ───────────────── /// ─────────────────\033[1;33m"
  32. echo -e "\033[1;37m ChumoGH-ADM @ FIX SOURCES \033[0m"
  33. echo -e "[\033[1;31m-\033[1;33m]\033[1;31m ───────────────── /// ─────────────────\033[1;33m"
  34. echo -e "\033[1;37mSeleccione una opcion: Para Salir Ctrl + C\033[1;33m
  35. [\033[1;32m1\033[1;33m] › FIX SOURCES UBUNTU 16.04 \033[1;33m
  36. [\033[1;32m2\033[1;33m] › FIX SOURCES UBUNTU 18.04 \033[1;33m
  37. [\033[1;32m3\033[1;33m] › FIX SOURCES UBUNTU 19.10 \033[1;33m
  38. [\033[1;32m4\033[1;33m] › FIX SOURCES UBUNTU 20.04 \033[1;33m
  39. [\033[1;32m0\033[1;33m] < REGRESAR \033[1;33m"
  40. read -p ": " opcao
  41. else
  42. opcao=$1
  43. fi
  44. case $opcao in
  45. 1)
  46. fixsources16;;
  47. 2)
  48. fixsources18;;
  49. 3)
  50. fixsources19;;
  51. 4)
  52. fixsources20;;
  53. 0)
  54. exit;;
  55. esac
  56. }
  57. fixsources