Advertisement
DYankee

Startup

Mar 18th, 2022 (edited)
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. Version = 0.4
  2. PastBinAddress = "mEC0veuM"
  3.  
  4. settings.set("Version", Version)
  5. settings.save(".OsSettings")
  6. settings.load(".OsSettings")
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. print("loading Lapis OS " .. Version)
  10. term.setCursorPos(1,2)
  11. sleep(1)
  12. textutils.slowPrint("########")
  13. sleep(1)
  14. Version = "Version"
  15.  
  16. if fs.isDir("/os") == false then
  17.     fs.makeDir"/os"
  18. end
  19.  
  20. if fs.isDir("/os/programs") == false then
  21.     fs.makeDir"/os/programs"
  22. end
  23.  
  24.  
  25. --update os
  26. fs.delete("startUp")
  27. shell.run("pastebin", "get", "mEC0veuM", "startUp")
  28.  
  29. fs.delete("/os/menu")
  30. shell.run("pastebin", "get", "vBSUkhP1","/os/menu")
  31.  
  32. fs.delete("/os/programMenu")
  33. shell.run("pastebin", "get", "AHEsJqjW","/os/programMenu")
  34.  
  35. fs.delete("/os/managePrograms")
  36. shell.run("pastebin", "get", "jJ7xa9hX","/os/managePrograms")
  37.  
  38. fs.delete("/os/modules/FreqFunc")
  39. shell.run("pastebin", "get", "vN3NrXdp", "/os/modules/FreqFunc")
  40.  
  41. shell.run("/os/menu")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement