rewic.sh 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ##########
  2. ##########
  3. ##########
  4. ##########
  5. #### rewic
  6. ##########
  7. ##########
  8. ##########
  9. ##########
  10. #insert rewic here, once it's sorted out
  11. # NOTE! this function in the script WAS (now removed) a franken-disection-hackage gutted from tazlitoforwitchcraftextractions, which is just a copy of the earliest tazlito to have write-iso included. it still needs much re-reading n hackage to get to work, especially across all gentoo-esq (and other) distros. ... so i just completely removed it for now. i think it was 1.3... er... or 2.1 or.. sometime around there it got the writeiso feature.
  12. #all tazlito changed to rewic, and all slitaz changed to witch. ;) just so you know.
  13. ### let the hacking commence!
  14. #removed... ...devomer#
  15. #might wanna consider nabbing some ideas from debian-live-helper and the linux-live scripts famed from the slackers.
  16. #but tazlito's remasterer is rather the tits, so if we could get it to work instead, it'd be... " the tits "
  17. function rewicwitchhunt {
  18. echo "ADD STUFF HERE, SCRIPT INCOMPLETE. STUB. here we go hunting for pre-made isos. more witches to burn!"
  19. witchhunt.sh
  20. }
  21. function rewicdd {
  22. echo "here we just dd'up wherever you choose, to wherever you choose.
  23. ~ though be advised, dd is:
  24. very low level
  25. takes long time
  26. waste a lot of space!"
  27. sleep 1
  28. echo "warning! this method uses dd, aka data-destroyer (due to people not respecting its power). proceed with caution, there is no going back if you wipe your drive by accident with dd"
  29. echo "what do you want copied? (enter location of what you want copied)
  30. e.g.:/dev/sdb1"
  31. read -r WHATDD
  32. echo "will use $WHATDD as the input to the dd command."
  33. echo "where do you want it copied to? (please type full path, include filename and extension)
  34. e.g.:/media/chuckdrive/lemule-slack-witch-alpha1.iso"
  35. read -r LOCDD
  36. echo "will use $LOCD as the location dd will output to."
  37. sleep 2
  38. echo "again, the warning, please make absolute certain, that this is the right way around.
  39. will now proceed to issue this command:
  40. dd if=$WHATDD of=$LOCDD
  41. if that looks wrong, do not proceed."
  42. sleep 2
  43. echo "ok to proceed? (Y/N):"
  44. read
  45. read REPLY
  46. if [ "$REPLY" == "y" ]
  47. then
  48. dd if=$WHATDD of=$LOCDD
  49. else
  50. rewicmenu
  51. fi
  52. #should likely rearrange that to ask people to make sure it's right at least three times. ;)
  53. }
  54. function rewictar {
  55. echo "sry this has nothing coded yet, easy enough to do though right, come join the hackup in #witchlinux on irc freenode net"
  56. }
  57. function rewiclinuxlive {
  58. echo "sorry, nothing scripted in for this section yet. come join the hackup in #witchlinux on irc freenode net. also, of course, have a look at: http://www.linux-live.org/ "
  59. }
  60. function rewicmenu {
  61. echo "how u wanna do this?"
  62. echo "
  63. A. dd (use with caution)
  64. B. tar (with exclude list if you want)
  65. C. linux-live scripts
  66. D. tazlito
  67. E.
  68. F. enter your own preference of remaster manager"
  69. read REWICMETHOD
  70. case $REWICMETHOD in
  71. A|a)
  72. echo "Choice was $REWICMETHOD. dd"
  73. rewicdd
  74. ;;
  75. B|b)
  76. echo "Choice was $REWICMETHOD. tar"
  77. sleep 1
  78. rewictar
  79. ;;
  80. C|c)
  81. echo "Choice was $REWICMETHOD. linux live"
  82. sleep 1
  83. rewiclinuxlive
  84. ;;
  85. D|d)
  86. echo "Choice was $REWICMETHOD. tazlito"
  87. sleep 1
  88. rewic
  89. ;;
  90. # was gonna add mores... but i'm lazy... and it's not like any are implemented yet.
  91. E|e)
  92. echo "ok, taking you to find one we made earlier... let the witch hunt commence."
  93. sleep 1
  94. rewicwitchhunt
  95. ;;
  96. F|f)
  97. echo "going back"
  98. sleep 1
  99. rewic
  100. ;;
  101. esac
  102. }
  103. function rewic {
  104. echo "rewic, the iso remastery stuff has been gutted from this version while we work out the installer stuff ~ no loss it didnt work yet anyway."
  105. echo "we strongly urge you to have a look through https://github.com/Digit/witch/issues/5 and in particular, the links in the first comment, which are a collection of resources to point the ways we could go about remastering."
  106. rewicmenu
  107. }
  108. rewic