LazerAio

install.lua

Feb 22nd, 2022 (edited)
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. term.setBackgroundColor( colors.blue )
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("AiOs Installer V1.7")
  5. textutils.slowPrint("Installing AiOs")
  6. print("You can mannually install the system via the pastebin page you got this from")
  7. print("enter to continue")
  8. read()
  9. print("[N]ew set or [O]ld set")
  10. while true do
  11. local tempa = read()
  12. if string.upper(tempa) == "N" then
  13. print("[7] - AIOS V7p2")
  14. while true do
  15. tempb = read()
  16. if tempb == "7" then
  17. shell.run("pastebin run 4KQanS75")
  18. break
  19. end
  20. end
  21. elseif string.upper(tempa) == "O" then
  22. break
  23. end
  24. end
  25. print("Continuing install in 1 second")
  26. sleep(1)
  27. print("pick edition")
  28. print("[N]ew [AiOs 2.0]")
  29. print("[A]64 [A32 continuation]")
  30. print("[M]odern [AiOs 5]")
  31. w = true
  32. while w do
  33. VERSION = read()
  34. if VERSION == "A" or VERSION == "a" then
  35. VERSION = "A"
  36. break
  37. elseif VERSION == "N" or VERSION == "n" then
  38. VERSION = "N"
  39. break
  40. elseif VERSION == "M" or VERSION == "m" then
  41. VERSION = "5"
  42. break
  43. else
  44. print("Not an option")
  45. end
  46. end
  47. textutils.slowPrint("Installing AiOs && AiOs BIOS")
  48. term.clear()
  49. term.setCursorPos(1,1)
  50. term.setTextColour(colours.red)
  51. print("-----X")
  52. term.setCursorPos(1,1)
  53. if VERSION == "N" then
  54. shell.run("pastebin", "get", "BrBCtgQs", ".os")
  55. print("----X-")
  56. term.setCursorPos(1,1)
  57. shell.run("pastebin", "get", "VV4Gymk6", ".ProgramMenu")
  58. term.setTextColour(colours.green)
  59. print("--<")
  60. print("If you are stuck try holding cntrl+T for about 2 seconds")
  61. sleep(1)
  62. shell.run("mkdir", "os")
  63. print("-<-")
  64. sleep(1)
  65. shell.run("cp", ".menu", "/os/.menu")
  66. print("<--")
  67. sleep(1)
  68. term.clear()
  69. term.setCursorPos(1,1)
  70. term.setTextColour(colours.red)
  71. print("---X--")
  72. shell.run("pastebin", "get", "e4xEc8hF", ".bios.lua")
  73. term.setCursorPos(1,1)
  74. print("--X---")
  75. shell.run("pastebin", "get", "zrAdwWNf", "startup.lua")
  76. print("Minimum files have been installed")
  77. term.clear()
  78. term.setCursorPos(1,1)
  79. term.setTextColour(colours.green)
  80. textutils.slowPrint("Almost ready!")
  81. print("If you get stuck here, hold cntrl+T for 2 seconds!")
  82. print("1/6")
  83. shell.run("pastebin", "get", "42Sfmwkw", ".CMD")
  84. print("2/6")
  85. shell.run("pastebin", "get", "vYbBhc6p", ".programs")
  86. print("3/6")
  87. shell.run("mv", ".programs", "/os/.programs")
  88. print("4/6")
  89. shell.run("mkdir", "/os/programs")
  90. print("5/6")
  91. shell.run("pastebin", "get", "8cE2UhcX", "hi.lua")
  92. sleep(0.25)
  93. print("6/6")
  94. shell.run("mv", "hi.lua", "/os/programs/hi.lua")
  95. print("Installing additonal programs")
  96. shell.run("pastebin", "get", "zW99JCr5", ".FM.lua")
  97. shell.run("pastebin", "get", "isrc4Gd7", "/os/programs/Telnet.lua")
  98. shell.run("pastebin", "get", "z8XmXhyQ", ".uninstall")
  99. if VERSION == "N" then
  100. shell.run("pastebin", "get", "mRrQSsud", ".ATerm")
  101. shell.run("pastebin", "get", "N5V3uYyX", ".DFT")
  102. print("INCLUDE SERVICE PACK 2? [Y]")
  103. if read() == "Y" then
  104. shell.run("pastebin", "get", "vXJ2enVX", "MUSIC")
  105. shell.run("pastebin", "get", "6gadUHeS", "ASS")
  106. term.clear()
  107. print("If possible please make a disk drive with disk")
  108. print("on the bottom side, then enter Y otherwise press enter")
  109. if read() == "Y" then
  110. shell.run("bg", "mv", "ASS", "disk/startup")
  111. sleep(0.25)
  112. shell.run("bg lable set bottom ASS")
  113. end
  114. end
  115. end
  116. term.setTextColour(colours.white)
  117. print("---------------------------")
  118. print("If the program fails now please include")
  119. print("the following text:")
  120. term.setTextColour(colours.red)
  121. print("DEBUG INFO")
  122. print(fs.exists(".os"))
  123. print(fs.exists(".bios.lua"))
  124. print(fs.exists("startup.lua"))
  125. print(fs.exists("os"))
  126. term.setTextColour(colours.white)
  127. textutils.slowPrint("----------")
  128. elseif VERSION == "A" then
  129. term.clear()
  130. term.setTextColor(colors.lightGray)
  131. for i=1,30 do
  132. sleep(0.01)
  133. print(string.rep(":", term.getSize()))
  134. end
  135. term.setBackgroundColor(colors.black)
  136. term.setTextColor(colors.white)
  137. term.setCursorPos(1,1)
  138. print("prepping correct installer please wait")
  139. shell.run("pastebin run 3B2ksZU3")
  140. elseif VERSION == "5" then
  141. shell.run("pastebin run 0d6Gh5tz")
  142. end
  143. print("READY")
  144. print("REBOOTING")
  145. sleep(5)
  146. os.reboot()
  147.  
Add Comment
Please, Sign In to add comment