Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- running2 = true
- function get(paste, file)
- resp = http.get("http://pastebin.com/raw.php?i="..paste)
- if resp then
- handler=io.open(file,"w")
- handler:write(resp.readAll())
- handler:close()
- return true -- It worked
- else
- return false -- It failed
- end
- end
- local function testExist(path)
- if fs.exists( path ) then
- print( "File already exists" )
- running2 = false
- return
- end
- end
- if fs.exists("/launcher") then
- print("Launcher installed already, delete dir")
- print("y or n?")
- running = true
- while running do
- input = read()
- if input == "y" then
- print("deleting dir")
- fs.delete("/launcher")
- running2 = true
- running = false
- elseif input == "n" then
- print("closing installer")
- running = false
- else
- print("invalid option")
- end
- end
- end
- if running2 then
- get("J9sCcJ7q","launcher/main")
- get("Y7sBg50v","launcher/handler")
- get("Bzd4TF3K","launcher/screen")
- print("Rebooting Computer")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement