Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- if not http then
- write("LyokOS requiert l'API http d'active.", 2)
- end
- function fileDownload(path, url)
- local download = http.get(url)
- local text = download.readAll()
- local file = assert(io.open(path, "w"))
- file:write(text)
- file:close()
- end
- function logo()
- term.clear()
- term.setCursorPos(1,1)
- print(" _ _ ____ _____ ")
- print(" | | | | / __ \\ / ____|")
- print(" | | _ _ ___ | | _| | | | (___ ")
- print(" | | | | | |/ _ \\| |/ / | | |\\___ \\ ")
- print(" | |___| |_| | (_) | <| |__| |____) |")
- print(" |______\\__, |\\___/|_|\\_\\\\____/|_____/ ")
- print(" __/ | ")
- print(" |___/ ")
- end
- logo()
- if fs.exists("/startup") then fs.delete("/startup") end
- if fs.exists("/install") then fs.delete("/install") end
- if fs.exists("/BMOS/apis") then fs.delete("/BMOS/apis") end
- if fs.exists("/BMOS/image") then fs.delete("/BMOS/image") end
- if fs.exists("/BMOS/turtle") then fs.delete("/BMOS/turtle") end
- fs.makeDir("/BMOS/apis")
- fs.makeDir("/BMOS/image")
- fs.makeDir("/BMOS/turtle")
- fileDownload("/install", "https://dl.dropboxusercontent.com/u/47902751/download/BMOS/install")
- fileDownload("/BMOS/apis/lyokos", "https://dl.dropboxusercontent.com/u/47902751/download/BMOS/lyokos")
- fileDownload("/BMOS/image/LyokOS", "https://dl.dropboxusercontent.com/u/47902751/download/BMOS/image/LyokOS")
- shell.run("/install")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement