Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Basic doorOS3.0 Installer
- --Just run this directly
- --This downloads the OS, which is compiled by my MSI-Maker and unpacks it in the root directory, thats why you can't really see the source code
- --To view the OS code: https://github.com/Piorjade/DoorOS-3.0-ComputerCraft-
- shell.run("pastebin get 3bftaSuN tmp")
- shell.run("tmp /")
- local function writeStartup(f)
- local file = fs.open(f, "w")
- file.write("shell.run('/doorOS/sys/os.lua')")
- file.close()
- end
- local function r()
- print("Do you want the OS to start at boot? (y/n)")
- repeat
- str = read()
- until str == "y" or str == "n"
- if str == "y" then
- writeStartup("/startup")
- os.reboot()
- else
- writeStartup("/bootDoorOS")
- print("Finished! To boot the os: /bootDoorOS")
- end
- end
- r()
- fs.delete("tmp")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement