Sxw1212

COS

Jan 28th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local fh = http.get("https://github.com/ComputerCraftTeam/COS/raw/stable/bin/install.lua")
  2. if fh then
  3.     local file = fs.open("/install", "w")
  4.     file.write(fh.readAll())
  5.     file.close()
  6.     shell.run("install")
  7.     fs.delete("install")
  8.     os.reboot()
  9. else
  10.     error("Failed to load")
  11. end
Advertisement
Add Comment
Please, Sign In to add comment