atlasim

CatOS 0.1 TEMPBOOT

May 10th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. shell.run("mkdir .temp")
  2. term.setTextColor(colors.yellow)
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. term.write("CatOS 0.1 (Temp Boot)")
  6. term.setTextColor(colors.white)
  7. term.setCursorPos(1,2)
  8. term.write("> ")
  9. --start
  10. apprun = io.read()
  11. if apprun == "exit" then
  12. shell.run("delete .temp")
  13. os.shutdown()
  14. elseif apprun == "reboot" then
  15. shell.run("delete .temp")
  16. os.reboot()
  17. elseif apprun == "files" then
  18. shell.run("pastebin run 10Uh9w0f")
  19. elseif apprun == "edit" then
  20. shell.run("pastebin run guNvJcZ9")
  21. elseif apprun == "format" then
  22. shell.run("pastebin run s41wJP5i")
  23. elseif apprun == "install" then
  24. shell.run("disk/install")
  25. elseif apprun == "getcatos" then
  26. shell.run("pastebin run b7K8etp2")
  27. elseif apprun == "shell" then
  28. shell.run("cd .temp")
  29. print("CraftOS > ")
  30. shellcomd = io.read()
  31. shell.run(shellcomd)
  32. elseif apprun == "getpaste" then
  33. shell.run("cd .temp")
  34. print("PASTEBIN CODE > ")
  35. pastenum = io.read()
  36. shell.run("pastebin run ",pastenum)
  37. else shell.run("pastebin run Gd3ykMDz")
  38. end
  39. --end
Add Comment
Please, Sign In to add comment