Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Loader = "https://raw.github.com/alakazard12/BootLoader/master/startup"
- HttpEnabled = false
- if http then
- HttpEnabled = true
- end
- local function Download(Link)
- if HttpEnabled == false then
- return
- end
- local File = http.get(Link)
- if not File then
- return
- else
- local ToR = File.readAll()
- File.close()
- return ToR
- end
- end
- if fs.exists("/startup") then
- fs.delete("/startup")
- end
- print("Downloading")
- local Get = Download(Loader)
- if Get == false then
- print("Unable to download")
- Fl.close()
- return
- end
- print("Installing")
- local Fl = fs.open("/startup", "w")
- Fl.write(Get)
- Fl.close()
- shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement