Ultrasonic54321

UOS Loader_

Mar 27th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.37 KB | None | 0 0
  1. shell.run("clear")
  2. if not fs.exists("preload") then
  3. term.setTextColor(colors.red)
  4. print("There has been a major corruption in the bootup program. The system will now halt to protect itself.")
  5. sleep(100)
  6. os.shutdown()
  7. end
  8. shell.run("delete preload")
  9. if fs.exists("shutdown") and fs.exists("reboot") then
  10. term.setTextColor(colors.lightBlue)
  11. sleep(2)
  12. local printcentred =
  13. function(text)
  14. local maxw, maxh = term.getSize()
  15. local curx, cury = term.getCursorPos()
  16. term.setCursorPos((maxw-#text)/2,cury)
  17. term.write(text)
  18. term.setCursorPos(curx,cury+1)
  19. end
  20. local maxw, maxh = term.getSize()
  21. term.setCursorPos(1,math.floor(maxh/2))
  22. printcentred("UltraOS")
  23. printcentred("UltraComputing inc.")
  24. sleep(1)
  25. shell.run("clear")
  26. term.setTextColor(colors.white)
  27. print("_")
  28. sleep(4)
  29. shell.run("clear")
  30. term.setTextColor(colors.yellow)
  31. print("UDOS")
  32. term.setTextColor(colors.white)
  33. print("INIT(UOS1.8)")
  34. sleep(0.25)
  35. shell.run("clear")
  36. print("Starting UltraOS from UDOS.")
  37. sleep(0.5)
  38. shell.run("clear")
  39. print("Starting UltraOS from UDOS..")
  40. sleep(0.5)
  41. shell.run("clear")
  42. print("Starting UltraOS from UDOS...")
  43. sleep(0.5)
  44. shell.run("clear")
  45. print("Starting UltraOS from UDOS.")
  46. sleep(0.5)
  47. shell.run("clear")
  48. print("Starting UltraOS from UDOS..")
  49. sleep(0.5)
  50. shell.run("clear")
  51. print("Starting UltraOS from UDOS...")
  52. sleep(0.5)
  53. shell.run("clear")
  54. print("Starting UltraOS from UDOS.")
  55. sleep(0.5)
  56. shell.run("clear")
  57. print("Starting UltraOS from UDOS..")
  58. sleep(1.1)
  59. print("Initialising Reboot.UEXE")
  60. sleep(0.2)
  61. print("Initializing ROMDat.DIR")
  62. sleep(0.3)
  63. shell.run("clear")
  64. term.setTextColor(colors.yellow)
  65. print("UltraOS v1.8.3 - 25/3/18")
  66. print("The 'Functions, Functions, Functions' Update!")
  67. print("Type in 'uoscmds' for UOS-Specific commands!")
  68. sleep(1)
  69. term.setTextColor(colors.white)
  70. else
  71. local printcentred =
  72. function(text)
  73. local maxw, maxh = term.getSize()
  74. local curx, cury = term.getCursorPos()
  75. term.setCursorPos((maxw-#text)/2,cury)
  76. term.write(text)
  77. term.setCursorPos(curx,cury+1)
  78. end
  79. local maxw, maxh = term.getSize()
  80. term.setCursorPos(1,math.floor(maxh/2))
  81. term.setTextColor(colors.lightBlue)
  82. printcentred("CCBios")
  83. sleep(0.99)
  84. printcentred("UltraOS Incorporated.")
  85. while true do
  86. term.setTextColor(colors.red)
  87. sleep(2)
  88. print("Could not find file (shutdown.UEXE) or (reboot.UEXE).")
  89. print("System has halted.")
  90. sleep(100)
  91. os.shutdown()
  92. end
  93. end
Advertisement
Add Comment
Please, Sign In to add comment