Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function BIOS_BOOT()
- textutils.slowPrint("Please wait...")
- term.setBackgroundColor( colors.blue )
- term.clear()
- term.setCursorPos(1,1)
- ERR = false
- print("AiOs BIOS")
- if fs.exists("disk/") then
- if fs.exists("disk/init") then
- print("Disk found with format")
- else
- print("CAUTION: NON SYSTEM DISK FOUND!")
- ERR = true
- end
- end
- print("Press enter to start boot sequance")
- function BIOS_STARTUP()
- print("Please wait..")
- term.setBackgroundColor( colors.gray )
- term.clear()
- term.setCursorPos(1,1)
- print("OK")
- print("Starting")
- sleep(1)
- if fs.exists(".os") then
- shell.run(".os")
- elseif fs.exists(".os.lua") then
- shell.run(".os.lua")
- elseif fs.exists("init.lua") then
- print("LEGACY INIT FOUND")
- print("Waiting 5 seconds then running")
- sleep(5)
- shell.run("init.lua")
- else
- textutils.slowPrint("No OS found!")
- print("Reboot? [Y/N]")
- if read() == "Y" then
- os.reboot()
- end
- end
- end
- print("Enter = Boot | AnyOtherInput = Escape")
- if ERR == true then
- if read() == "" or read() == " " then
- xpcall(BIOS_STARTUP())
- else
- print("Rebooting")
- os.reboot()
- end
- else
- xpcall(BIOS_STARTUP())
- end
- end
- term.setBackgroundColor( colors.blue )
- term.setCursorPos(1,1)
- term.clear()
- print("If you see this an error ocurred")
- print("----DO NOT PANIC---")
- print("Count to 3 then reboot")
- sleep(1)
- xpcall(BIOS_BOOT())
Add Comment
Please, Sign In to add comment