Advertisement
LazerAio

SETUP

Mar 10th, 2022 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. while true do
  2. if term.isColor() then
  3. term.setBackgroundColor(colors.cyan)
  4. else
  5. term.setBackgroundColor(colors.black)
  6. end
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. print("WELCOME TO AIOS V5 INSTALLER")
  10. print("SELECT INSTALL METHOD")
  11. print("[P]astebin [D]isk [S]elf compile")
  12. INP = read()
  13. if string.upper(INP) == "P" then
  14. METHOD = "PB"
  15. break
  16. elseif string.upper(INP) == "D" then
  17. METHOD = "D"
  18. break
  19. elseif string.upper(INP) == "S" then
  20. print("please reboot")
  21. sleep(20)
  22. os.reboot()
  23. end
  24. end
  25. function DI()
  26. while true do
  27. X = {"WELCOME TO AIOS V5"}
  28. W,H = term.getSize()
  29. term.setBackgroundColor(colors.cyan)
  30. term.clear()
  31. term.setTextColor(colors.white)
  32. term.setCursorPos((W/2)-11,(H/2)+5)
  33. term.setCursorPos(1,1)
  34. print("[A]bort or press enter")
  35. Z = read()
  36. if string.upper(Z) == "A" then
  37. break
  38. end
  39. settings.clear()
  40. shell.run("cp disk/* ./*")
  41. end
  42. end
  43. function PB()
  44. print("PB NOT AVAIBLE RIGHT NOW")
  45. print("INCLUDE STANDARD BIOS? [Y/N]")
  46. if string.upper(read()) == "Y" then
  47. shell.run("pastebin get QF5FRN5J .BIOS")
  48. else
  49. print("DO NOT FORGET TO INSTALL A BOOTLOADER OR BIOS")
  50. end
  51. print("INCLUDE BG? [Y/N]")
  52. if string.upper(read()) == "Y" then
  53. shell.run("mkdir /img/")
  54. shell.run("pastebin get FmgtwZYA bg.nfp")
  55. end
  56. shell.run("pastebin get 3jpvnjzg .os")
  57. shell.run("pastebin get x2SpvQ8U startup")
  58. print("DONE!")
  59. end
  60. if METHOD == "D" then
  61. DI()
  62. elseif METHOD == "PB" then
  63. PB()
  64. else
  65. textutils.slowPrint("ERROR METHOD UNKNOWN")
  66. end
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement