Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function i()
- term.clear()
- if fs.exists("/startup") then
- fs.delete("/startup")
- fs.delete("/enc")
- end
- term.setCursorPos(1,1)
- fs.makeDir("/LUAOS")
- fs.makeDir("/LUAOS/S")
- fs.makeDir("/LUAOS/C")
- fs.makeDir("/LUAOS/S/Users")
- shell.run("pastebin get WRTfH0yx /enc")
- shell.run("pastebin get VC9XdqiW /startup")
- print("installation finished")
- sleep(5)
- os.reboot()
- end
- local function c()
- term.clear()
- term.setCursorPos(3,3)
- print("welcome to the LUAOS installer")
- print("are you sure you want to install LUAOS?")
- print("Y/N")
- local sEvent, param = os.pullEvent("key")
- if param == 21 then
- i()
- else if param == 49 then
- os.reboot()
- else
- c()
- end
- end
- end
- c()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement