Advertisement
joshgreatuk

LUAOS Installer 0.4

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