Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- term.clear()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- print("Do you want to Install Isaac OS v1 Alpha?: ")
- cmd = read()
- if cmd == "yes" then
- start()
- else
- abort()
- end
- end
- function start()
- term.clear()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- print("Installing Isaac OS v1 Alpha")
- sleep(1)
- fs.makeDir("/isaacos")
- fs.makeDir("/isaacos/system/x16")
- fs.makeDir("/isaacos/system/api")
- fs.makeDir("/isaacos/Desktop")
- fs.makeDir("/isaacos/Programs")
- fs.makeDir("/isaacos/Documents")
- print("Downloading Dependencies!")
- sleep(0.5)
- shell.run("pastebin", "get", "c6iDXfeh", "/isaacos/system/x16/os.lua")
- sleep(0.5)
- print("Downloading All SystemFiles!")
- sleep(0.5)
- shell.run("pastebin", "get", "LJnpmary", "startup")
- shell.run("pastebin", "get", "Uk9vKtkj", "/isaacos/system/system.lua")
- shell.run("pastebin", "get", "E8uwgwfX", "/isaacos/Programs/cmd.lua")
- shell.run("pastebin", "get", "ejCALkKQ", "/isaacos/Programs/program.lua")
- sleep(3)
- textutils.slowWrite("Done Installing!\n Restarting System..")
- sleep(1)
- os.reboot()
- end
- function abort()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Aborting Installation for Isaac OS v1 Alpha")
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement