partmanselector.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ##########
  2. ##########
  3. ## partman
  4. ## GLOBAL needs no changes
  5. #MIX ... this is where the addaption from gentoo to poly-distro develops
  6. #there should be no change needed for this section in the mix... nothing distro specific... unless something fancy requested for elaborate bedrock installs, etc.
  7. function partman {
  8. echo "once you have partitioned your hard drive satasfactorilly, exit the partition manager, and the script will continue."
  9. $WITCH/color.sh QUESTION "which partition manager do you want to use?"
  10. $WITCH/color.sh GREEN "
  11. A. fdisk
  12. B. gparted
  13. C. enter your own preference of partition manager"
  14. read PARTITIONER
  15. case $PARTITIONER in
  16. A|a)
  17. echo "Choice was $PARTITIONER. launching..."
  18. sleep 5
  19. fdisk
  20. echo "okies, i\'m still working on the bit for creating file systems after using fdisk."
  21. ;;
  22. B|b)
  23. echo "Choice was $PARTITIONER. launching..."
  24. sleep 5
  25. gparted
  26. ;;
  27. C|c)
  28. echo "Choice was $PARTITIONER. "
  29. echo "enter name of your prefered partition manager" && read -r PARTMANSEL
  30. $PARTMANSEL
  31. ;;
  32. *)
  33. echo "Valid Choices are A,B,C, try again."
  34. partman
  35. ;;
  36. esac
  37. echo "partitioning complete"
  38. }
  39. partman