Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --eepromInstaller by SergOmarov
- local fs=component.proxy(component.list("filesystem")())
- local i=component.proxy(component.list("internet")())
- local urls={--сюда пиши урл
- }
- local names={--сюда имена соотвествующих файлов
- }
- computer.getBootAddress=function() return addr end
- for j=1,#urls do
- local f=fs.open(names[j],"w")
- local url = "http://pastebin.com/raw.php?i=" ..urls[j]
- local result,resp=i.request(url)
- for chunk in resp do
- string.gsub(chunk, "\r\n", "\n")
- f:write(chunk)
- end
- f:close()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement