Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pasteID = "http://pastebin.com/raw.php?i=92vuEff9"
- pasteContent = http.get(pasteID)
- Paste = pasteContent.readAll()
- pasteContent.close()
- function update()
- file = fs.open("startup","r")
- contents = file.readAll()
- file.close()
- if (Paste ~= contents) then
- print("Updating program...")
- shell.run("delete","check")
- wFile = fs.open("check","w")
- wFile.write(Paste)
- wFile.close()
- sleep(2)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement