Advertisement
joshgreatuk

LUAOS Installer 0.4.1

Jul 29th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local function i()
  2. term.clear()
  3. if fs.exists("startup") then
  4. fs.delete("startup")
  5. end
  6. term.setCursorPos(1,1)
  7. fs.makeDir("/LUAOS")
  8. fs.makeDir("/LUAOS/S")
  9. fs.makeDir("/LUAOS/C")
  10. fs.makeDir("/LUAOS/S/Users")
  11. shell.run("pastebin get yyA8iBdc /startup")
  12. print("installation finished")
  13. sleep(5)
  14. os.reboot()
  15. end
  16. local function c()
  17. term.clear()
  18. term.setCursorPos(3,3)
  19. print("welcome to the LUAOS installer")
  20. print("are you sure you want to install LUAOS?")
  21. print("Y/N")
  22. local sEvent, param = os.pullEvent("key")
  23. if param == 21 then
  24. i()
  25. else if param == 49 then
  26. os.reboot()
  27. else
  28. c()
  29. end
  30. end
  31. end
  32. c()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement