installkillx.sh 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ##########
  2. ##########
  3. ##########
  4. ##########
  5. ### gentoo
  6. ## this section might be included in a seperate file.
  7. read -p "enter the name of your new distro (anything you like - but keep it short and sweet): " DISTRONAME
  8. echo $DISTRONAME > $WITCH/config.base.txt #1st line
  9. METADISTRO=KILLX #for further revisions, there's sense in sort-of modularising this with even more functions, so each option can be called from a series of options. make sense? good.
  10. #ARCH="uname -m" #setting this bellow ~ remove if it's all good.
  11. PACKAGEMGR=SLACKPKG # will need to get this bit made savvy to tinycore's 4-ways packagemanagement model... er... or do we? maybe a couple of the ways ought be defined here? idk... this is all getting sloppilly thrown in here for starters. no idea how to do tinycopre, just know witch needs to do tinycore too. ;)
  12. #read -p "what is the name of the package manager you want? thisway/thatway?" PACKAGEMGR
  13. #echo $PACKAGEMGR was selected as the package manager you want to have installed
  14. echo $METADISTRO >> $WITCH/config.base.txt #2nd line
  15. uname -m >> $WITCH/config.base.txt #3rd line
  16. echo $PACKAGEMGR >> $WITCH/config.base.txt #4th line
  17. echo "======================"
  18. DISTRONAME=$(sed -n '1p' $WITCH/config.base.txt)
  19. METADISTRO=$(sed -n '2p' $WITCH/config.base.txt)
  20. ARCH=$(sed -n '3p' $WITCH/config.base.txt)
  21. PACKAGEMGR=$(sed -n '4p' $WITCH/config.base.txt)
  22. echo "DISTRONAME: $DISTRONAME"
  23. echo "METADISTRO: $METADISTRO"
  24. echo "ARCH: $ARCH"
  25. echo "PACKAGEMGR: $PACKAGEMGR"
  26. echo "======================"
  27. sleep 1
  28. clear && echo "WARNING, THIS IS JUST A STUB, IT WONT ACTUALLY INSTALL ANYTHING... YET ... come join the hackup on #witchlinux on irc.libera.chat."
  29. sleep 2
  30. echo "have a look at: http://docs.killx.org/docs.html
  31. killx's install page.
  32. "
  33. #these lines of course would take one to the rest of the gentoo install... shall these scripts get broadened for use with any base distro, or will tinycore (and others) have to go their own way?
  34. #clear && $WITCH/procedure.d/driveprep.sh
  35. #clear && $WITCH/procedure.d/stageinstall.sh
  36. #clear && $WITCH/procedure.d/installpackagemanager.sh
  37. #clear && $WITCH/procedure.d/initialmakeconf.sh
  38. #... i have no idea what wei2912 is on about with the learnix/diskimager thing...
  39. # wichroot is only required for actual systems
  40. # for Learnix systems it's not required.
  41. if [ "$DIMG_RUN" == "true" ]; then
  42. echo "The creation of your system has finished."
  43. else
  44. #more old bits from the gentoo, which woulda been clearer if it didnt have this strange if^ thing happening.
  45. # clear && $WITCH/procedure.d/prechroot.sh
  46. # clear && $WITCH/procedure.d/wichroot.sh
  47. fi
  48. #...and there we hit the end of the tinycore installation portion of witchcraft
  49. #job done. what's next... u want the deskfigselector() now dont you?
  50. #good, cos it should already be lined up to run, thnx to the stage3 function (as a top level option from cauldren), which calls it straight after running the distroselector function.
  51. #first you get run the witchcraft, thn you choose the cauldren, then you choose a proper stage3 install, then you get the distro, then you get the desktop. ^_^
  52. #... is how this path rolls. ^_^
  53. ###^^^ i know, it's all a mess. one had to do it though. one had to just grab the gentoo one and call it tinycore n amend as necessary.