partmanselector.sh 1009 B

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