Creeper9207

COS:installer

Feb 21st, 2015
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. function draw()
  2. x, y = term.getSize()
  3.  
  4. paintutils.drawFilledBox(1, 1, x, y, colors.orange )
  5. paintutils.drawFilledBox(1, 1, x, 1, colors.gray)
  6. term.setCursorPos(1,1)
  7. term.setBackgroundColor(colors.lightGray)
  8. term.setTextColor(colors.white)
  9. term.write("[START]")
  10. x = math.floor(x / 2 - 8)
  11. y = math.floor(y / 2 - 3)
  12. paintutils.drawFilledBox(x, y, x + 16, y + 6, colors.white )
  13. paintutils.drawFilledBox(x, y, x+16, y, colors.gray)
  14. term.setCursorPos(x, y)
  15. term.write("Installer")
  16. sleep(0.3)
  17. end
  18. draw()
  19. function s(z)
  20. shell.run(z)
  21. end
  22. function i(x, y)
  23. shell.run("pastebin get " .. x .. " " .. y)
  24. end
  25. draw()
  26. s("mkdir /home/apps")
  27. draw()
  28. s("mkdir /home/gui")
  29. file = fs.open("/home/gui/data", "w")
  30. file.write("orange")
  31. file.flush()
  32. file.close()
  33. draw()
  34. i("vH6vGeu4", "/home/gui/desktop")
  35. draw()
  36. i("etGgzZn8", "/home/config.db")
  37. draw()
  38. i("nSMXNE5x", "/home/cd")
  39. draw()
  40. i("BHrp0dLt", "/home/termapi")
  41. draw()
  42. i("eHZ5nucH", "/home/term")
  43. draw()
  44. i("K6cKV4Gj", "/startup")
  45. draw()
  46. i("6ThurChD", "/home/nano")
  47. draw()
  48. i("vyAZc6tJ", "/home/luaide")
  49. draw()
  50. i("pnzdr8FB", "/home/Files")
  51. draw()
  52. i("VDUGPdiA", "/home/apps/quest")
  53. draw()
  54. i("eQTRCEt9", "/home/dbapi")
  55. draw()
  56. i("QWfprnTx", "/home/wget")
  57. draw()
  58. i("CULLU6Qm", "/home/gui/customize")
  59. i("LB8jD1tk", "/home/passwd")
  60. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment