Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- if not fs.exists("preload") then
- term.setTextColor(colors.red)
- print("There has been a major corruption in the bootup program. The system will now halt to protect itself.")
- sleep(100)
- os.shutdown()
- end
- shell.run("delete preload")
- if fs.exists("shutdown") and fs.exists("reboot") then
- term.setTextColor(colors.lightBlue)
- sleep(2)
- local printcentred =
- function(text)
- local maxw, maxh = term.getSize()
- local curx, cury = term.getCursorPos()
- term.setCursorPos((maxw-#text)/2,cury)
- term.write(text)
- term.setCursorPos(curx,cury+1)
- end
- local maxw, maxh = term.getSize()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("UltraOS")
- printcentred("UltraComputing inc.")
- sleep(1)
- shell.run("clear")
- term.setTextColor(colors.white)
- print("_")
- sleep(4)
- shell.run("clear")
- term.setTextColor(colors.yellow)
- print("UDOS")
- term.setTextColor(colors.white)
- print("INIT(UOS1.8)")
- sleep(0.25)
- shell.run("clear")
- print("Starting UltraOS from UDOS.")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS..")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS...")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS.")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS..")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS...")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS.")
- sleep(0.5)
- shell.run("clear")
- print("Starting UltraOS from UDOS..")
- sleep(1.1)
- print("Initialising Reboot.UEXE")
- sleep(0.2)
- print("Initializing ROMDat.DIR")
- sleep(0.3)
- shell.run("clear")
- term.setTextColor(colors.yellow)
- print("UltraOS v1.8.3 - 25/3/18")
- print("The 'Functions, Functions, Functions' Update!")
- print("Type in 'uoscmds' for UOS-Specific commands!")
- sleep(1)
- term.setTextColor(colors.white)
- else
- local printcentred =
- function(text)
- local maxw, maxh = term.getSize()
- local curx, cury = term.getCursorPos()
- term.setCursorPos((maxw-#text)/2,cury)
- term.write(text)
- term.setCursorPos(curx,cury+1)
- end
- local maxw, maxh = term.getSize()
- term.setCursorPos(1,math.floor(maxh/2))
- term.setTextColor(colors.lightBlue)
- printcentred("CCBios")
- sleep(0.99)
- printcentred("UltraOS Incorporated.")
- while true do
- term.setTextColor(colors.red)
- sleep(2)
- print("Could not find file (shutdown.UEXE) or (reboot.UEXE).")
- print("System has halted.")
- sleep(100)
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment