Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- detect = shell.getRunningProgram()
- if detect ~= "disk/startup" then
- print("Run this as a startup disk to continue.")
- sleep(2)
- os.shutdown()
- else
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Hi! Would you like to continue your installation of FakeConsole? Y or N.")
- input = read()
- if input == "Y" then
- textutils.slowPrint("Updating.....")
- if fs.exists("fakeconsole") == true then
- fs.delete("fakeconsole")
- else
- end
- shell.run("pastebin get rhDb53sD fakeconsole")
- elseif input ~= "N" then
- print("Invalid answer.")
- sleep(2)
- os.pullEvent = oldPull
- os.reboot()
- else
- print("Exiting installation... Please remove install disk.")
- sleep(2)
- os.pullEvent = oldPull
- os.shutdown()
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Would you like to make FakeConsole your startup? Y or N.")
- input = read()
- if input == "Y" then
- if fs.exists("startup") == true then
- if fs.exists("oldstartup") ~= true then
- shell.run("mkdir oldstartup")
- else
- end
- if fs.exists("oldstartup/startup") == true then
- fs.delete("oldstartup/startup")
- else
- end
- shell.run("move startup oldstartup/startup")
- else
- end
- h = fs.open("startup", "w")
- h.writeLine("shell.run('fakeconsole')")
- h.close()
- print("Finished installation. Please remove installation disk.")
- sleep(2)
- os.shutdown()
- elseif input ~= "N" then
- print("Invalid answer.")
- sleep(2)
- os.reboot()
- os.pullEvent = oldPull
- else
- print("Finished installation. Please remove installation disk.")
- sleep(2)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment