Advertisement
CreeperNukeBoom

Tollway updater

Dec 14th, 2019
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function Update()
  2.   local h, err = http.get("https://pastebin.com/raw/QEai09dx")
  3.   if not h then printError(err) return end
  4.   local f = fs.open("startup", "w")
  5.   f.write(h.readAll())
  6.   f.close()
  7.   h.close()
  8.   os.reboot()
  9. end
  10.  
  11. Update()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement