Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = ""
- if fs.exists("startup.lua") then
- f = "startup.lua"
- else
- f = "startup"
- end
- local file = fs.open(f,"r")
- local cont = file.readAll()
- file.close()
- fs.delete(f)
- file = fs.open(f,"w")
- file.writeLine("os.loadAPI('sBox')")
- file.writeLine("sBox.init('/rom','false','false')")
- file.writeLine("sBox.fres()")
- file.writeLine("sBox.sBox()\n")
- file.write(cont)
- file.close()
- file = fs.open("/sBox","w")
- local ret = http.get("https://pastebin.com/raw/44nvWqA8")
- file.write(ret.readAll())
- file.close()
- os.reboot()
Add Comment
Please, Sign In to add comment