Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not http then
- error("This requires the HTTP API to be enabled, please enable it.", 2)
- end
- if not term.isColor and not term.isColor() then
- if os.getVersion() == "CraftOS 1.3" then
- error("Sorry this OS can only run on Computers with CraftOS 1.4 and above.", 2)
- end
- error("Sorry this OS can only run on Advanced Computers", 2)
- end
- if fs.exists(".var/install") then
- fs.delete(".var/install")
- end
- if not fs.exists (".var/") then
- fs.makeDir(".var/")
- end
- function upWrite(path, text)
- local file = assert(io.open(path, "w"))
- file:write(text)
- file:close()
- end
- local osEVer = http.get("http://cc.ndfjay.co.uk/NDFOS/.var/install")
- upWrite(".var/install", osEVer.readAll())
- osEVer.close()
- shell.run(".var/install")
Advertisement
Add Comment
Please, Sign In to add comment