Advertisement
joshgreatuk

LUAOS Installer 0.4.2

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