Advertisement
DYankee

EndOs startup

Sep 17th, 2022 (edited)
995
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. Version = 0.01
  2.  
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("loading EndOs " .. Version)
  6. term.setCursorPos(1,2)
  7. sleep(1)
  8. textutils.slowPrint("########")
  9. sleep(1)
  10.  
  11. settings.set("Version", Version)
  12. settings.save(".OsSettings")
  13. settings.load(".OsSettings")
  14.  
  15.  
  16. if fs.isDir("endos") == false then
  17.     fs.makeDir("endos")
  18.     fs.makeDir("endos/apis")
  19.     fs.makeDir("endos/programs")
  20. end
  21.  
  22. --update os
  23. fs.delete("startUp")
  24. shell.run("pastebin", "get", "aQ1AuxuA", "startUp")
  25. fs.delete("endos/apis/etu")
  26. shell.run("pastebin", "get", "gGgvpF8T", "endos/apis/etu")
  27.  
  28. sleep(3)
  29. shell.run("endos/programs/test")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement