joshgreatuk

LUAOS installer 0.5

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