distroselect.sh 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. ##################
  2. ##################
  3. ##################
  4. ### distroselect
  5. distroselect() {
  6. clear
  7. #distroselect first question
  8. $WITCH/color.sh QUESTION "what meta-distro do you want your witch based on?"
  9. $WITCH/color.sh GREEN "
  10. 1) Gentoo (pick me!)
  11. 2) Bedrock
  12. 3) Funtoo
  13. 4) Exherbo
  14. 5) Gentoo/BSD
  15. 6) Gentoo/Hurd
  16. 7) FreeBSD
  17. 8) Debian
  18. 9) tinycore
  19. 10) killx
  20. 11) sourcemagethingy
  21. 42) the answer to life, the universe and everything
  22. 88) combo
  23. 99) other
  24. enter preferred number preference of preference:"
  25. read BASEDISTRO
  26. case $BASEDISTRO in
  27. 1)
  28. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  29. echo "this is where you get taken to the gentoo bit"
  30. sleep 3
  31. $WITCH/cauldren.d/installgentoo.sh
  32. ;;
  33. 2)
  34. $WITCH/color.sh QUESTION "who's bedrock installer do you want to use?"
  35. $WITCH/color.sh GREEN "
  36. d) Digit's bedrock installer script (incomplete! dangerous)
  37. p) Paradigm's official bedrock installer (recommended)
  38. enter the letter corresponding to your choice:"
  39. read BEDROCKINSTALLER
  40. case $BEDROCKINSTALLER in
  41. d)
  42. echo "Choice was $BASEDISTRO, and $BEDROCKINSTALLER. sorry, this part of the script is incomplete"
  43. echo "this is where you get taken to the bedrock bit"
  44. sleep 3
  45. $WITCH/cauldren.d/installbedrock.sh
  46. ;;
  47. p)
  48. echo "Choice was $BASEDISTRO, and $BEDROCKINSTALLER. this takes you direct to third party, bedrock's offical installer direct from github."
  49. sleep 3
  50. $WITCH/cauldren.d/installbedrockofficial.sh
  51. ;;
  52. esac
  53. ;;
  54. 3)
  55. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  56. echo "this is where you get taken to the funtoo bit"
  57. sleep 3
  58. $WITCH/cauldren.d/installfuntoo.sh
  59. ;;
  60. 4)
  61. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  62. echo "this is where you get taken to the exherbo bit"
  63. sleep 3
  64. $WITCH/cauldren.d/installexherbo.sh
  65. ;;
  66. 5)
  67. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  68. echo "this would be where you get taken to the Gentoo/BSD bit"
  69. sleep 3
  70. $WITCH/cauldren.sh
  71. ;;
  72. 6)
  73. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  74. echo "this would be where you get taken to the Gentoo/Hurd bit"
  75. sleep 3
  76. $WITCH/cauldren.sh
  77. ;;
  78. 7)
  79. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  80. echo "this would be where you get taken to the FreeBSD bit"
  81. sleep 3
  82. $WITCH/cauldren.sh
  83. ;;
  84. 8)
  85. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  86. echo "this is where you get taken to the debian bit"
  87. sleep 3
  88. $WITCH/cauldren.d/installdebian.sh
  89. ;;
  90. 9)
  91. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  92. echo "this is where you get taken to the tinycore bit"
  93. sleep 3
  94. $WITCH/cauldren.d/installtinycore.sh
  95. ;;
  96. 10)
  97. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  98. echo "this is where you get taken to the killx bit"
  99. sleep 3
  100. $WITCH/cauldren.d/installkillx.sh
  101. ;;
  102. 42)
  103. echo "deep thought"
  104. $WITCH/cauldren.d/installmix.sh
  105. ;;
  106. 88)
  107. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  108. echo "this would be where you get taken to the bit that lets you custom pick each bit seperately (stage3, kernel, package manager, spintop, etc)... er, i think. second thoughts, this might already have been an option by the time you\'re selecting which basedistro... oh well, there\'s no real harm in having it in here again, right?"
  109. sleep 3
  110. $WITCH/cauldren.sh
  111. ;;
  112. 99)
  113. echo "Choice was $BASEDISTRO, sorry, this part of the script is incomplete"
  114. echo "idkwtf goes here... something, surely."
  115. sleep 3
  116. $WITCH/cauldren.sh
  117. ;;
  118. *)
  119. echo "Non-valid choice. try again"
  120. sleep 3
  121. distroselect
  122. ;;
  123. esac
  124. }
  125. distroselect