Advertisement
ecoMeco

AdmiOS - INSTALL

Jun 20th, 2014
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --The First Screen
  2. function titlebar()
  3. term.setCursorPos(1,1)
  4. term.setBackgroundColor(colors.blue)
  5. term.clearLine()
  6. term.setCursorPos(1,1)
  7. term.setBackgroundColor(colors.blue)
  8. print("AdmiOS installer")
  9. term.setBackgroundColor(colors.lightGray)
  10. end
  11. term.setBackgroundColor(colors.lightGray)
  12. term.clear()
  13. titlebar()
  14. term.setCursorPos(8,3)
  15. term.setTextColor(colors.white)
  16. if fs.exists("boot") then
  17.  print("Old Files Detected! Removing")
  18.  term.clear()
  19. term.setCursorPos(30,3)
  20.  shell.run("rm boot")
  21.  shell.run("rm desktop")
  22.  shell.run("rm fman")
  23.  shell.run("rm goodbye")
  24.  shell.run("rm startup")
  25.  shell.run("rm firewolf")
  26.  shell.run("rm sketch")
  27.  shell.run("rm luaide")
  28.  shell.run("rm terminal_starter")
  29.  shell.run("rm uninstall")
  30.  shell.run("rm confirmuninstall")
  31.  shell.run("rm /pics/")
  32.  term.clear()
  33.  titlebar()
  34. end
  35. term.setCursorPos(8,3)
  36. print("Installing!")
  37. term.setCursorPos(1,10)
  38. shell.run("pastebin get U9TEf2rV boot")
  39. shell.run("pastebin get 0zNqbAJj fman")
  40. shell.run("pastebin get 2NfBgPhJ goodbye")
  41. shell.run("pastebin get TbSEYbST startup")
  42. shell.run("pastebin get XKCuFXSh terminal_starter")
  43. shell.run("pastebin get mQXjVaWa uninstall")
  44. shell.run("pastebin get w24y4UNK confirmuninstall")
  45. shell.run("pastebin get BzunbWLf desktop")
  46. shell.run("pastebin get JupPqepL pics/desktop_bg")
  47. shell.run("pastebin get HgFvQ0ZU pics/startingup")
  48. shell.run("pastebin get A7wGH3ty firewolf")
  49. shell.run("pastebin get vyAZc6tJ luaide")
  50. shell.run("pastebin get Mm5hd97E sketch")
  51. term.clear()
  52. titlebar()
  53. term.setCursorPos(8,3)
  54. print("Completely installed! Reboot in 3 sec")
  55. sleep(3)
  56. shell.run("goodbye -r")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement