Advertisement
pepeknamornik

instalace CZ

Sep 13th, 2014
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.80 KB | None | 0 0
  1. function opakovani ()
  2. term.setBackgroundColor(colors.white)
  3. term.setTextColor(colors.black)
  4. term.clear()
  5. term.setCursorPos(5, 7)
  6. print "Do you want instal Pepdroll 6 ? y/n"
  7. term.setCursorPos(18, 8)
  8. print " support /help "
  9. term.setBackgroundColor(colors.lightBlue)
  10. term.setCursorPos(23, 10)
  11. print "       "
  12. term.setCursorPos(24, 10)
  13. opak = io.read ()
  14.  
  15. if opak == "y" then
  16. instalace ()
  17. elseif opak == "/help" then
  18. term.setBackgroundColor(colors.white)
  19. term.setTextColor(colors.black)
  20. term.clear()
  21. term.setCursorPos(5, 7)
  22. term.setBackgroundColor(colors.yellow)
  23. term.setTextColor(colors.white)
  24. print "                         "
  25. term.setCursorPos(5, 8)
  26. print " y -> start setup        "
  27. term.setCursorPos(5, 9)
  28. print " n -> start craftOS      "
  29. term.setCursorPos(5, 10)
  30. print " /help -> help           "
  31. term.setCursorPos(5, 11)
  32. print " Enter -> clear          "
  33. term.setCursorPos(5, 12)
  34. print "                         "
  35. term.setCursorPos(5, 13)
  36. a = io.read ()
  37.  
  38. if a == " " then
  39. opakovani ()
  40. else
  41. opakovani ()
  42. end
  43. elseif opak == "n" then
  44. term.setBackgroundColor(colors.black)
  45. term.setTextColor(colors.white)
  46. term.clear()
  47. term.setCursorPos(1, 1)
  48. else
  49. term.setCursorPos(18, 10)
  50. term.setBackgroundColor(colors.red)
  51. print "error"
  52. sleep (1)
  53. opakovani ()
  54. end
  55. end
  56.  
  57. function instalace ()
  58. term.clear ()
  59. term.setCursorPos(10, 5)
  60. print " preparing instal "
  61. shell.run ("delete startup")
  62. shell.run ("pastebin get 1QjZQzuN np")
  63. shell.run ("pastebin get aCAuD6ye startup")
  64. shell.run ("pastebin get tbnzb7rH ink")
  65. shell.run ("pastebin get vm1p8DXs bar.nfp")
  66. shell.run ("pastebin get 5SdZp7V5 web")
  67. shell.run ("pastebin get zGtP59jJ /.core/paint")
  68. shell.run ("pastebin get iUxEM00P /.core/nastaveni.cfg")
  69. print " successful ,computer will reboot "
  70. sleep (1)
  71. os.reboot ()
  72. end
  73.    
  74.  
  75. opakovani ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement