Advertisement
MinecraftRocks999

Untitled

Dec 23rd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. function install()
  2. term.clear()
  3. print("Creating directories...")
  4. shell.run("mkdir", "/paulos")
  5. shell.run("mkdir", "/paulos/apps")
  6. shell.run("mkdir", "/paulos/resources")
  7. shell.run("mkdir", "/paulos/versions/")
  8. shell.run("mkdir", "/paulos/versions/0.1")
  9. print("Created directories!")
  10. print("")
  11. print("Downloading files...")
  12. shell.run("pastebin", "get", "irGJwdnR", "/paulos/gui")
  13. shell.run("pastebin", "get", "nuJvC6gZ", "/paulos/resources/logo")
  14. shell.run("pastebin", "get", "z0eWzygs", "/paulos/resources/icon")
  15. shell.run("pastebin", "get", "ikwJVwmL", "/paulos/resources/icon2")
  16. shell.run("pastebin", "get", "s2UNJtg2", "/paulos/apps/filebrowser")
  17. shell.run("pastebin", "get", "xrftbCc7", "/paulos/apps/games")
  18. shell.run("pastebin", "get", "BLSi53FZ", "/startup")
  19. print("Downloads finished!")
  20. print("")
  21. print("Rebooting in 1 second...")
  22. os.sleep(1)
  23. os.reboot()
  24. end
  25.  
  26. function upgrade()
  27. print("First release, please install instead.")
  28. end
  29.  
  30. while true do
  31. term.clear()
  32. print("PaulOS Installer")
  33. print("")
  34. print("1. Install")
  35. print("2. Upgrade")
  36. print("Q. Cancel")
  37. print("")
  38. print("Choice: ")
  39. choice = read()
  40. if choice =="1" then
  41. install()
  42. os.reboot()
  43. end
  44. if choice =="2" then
  45. upgrade()
  46. install()
  47. os.reboot()
  48. end
  49. if choice =="Q" then
  50. break
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement