Advertisement
pepeknamornik

Update Pack

Apr 16th, 2015
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local a = x
  2. function diagnostic ()
  3. data = fs.open ("/system/.core/Build", "r")
  4. verze = data.readLine ()
  5. a = data.readLine ()
  6. data.close()
  7. term.setBackgroundColor(colors.black)
  8. term.setTextColor(colors.white)
  9. term.setCursorPos(1,1)
  10. term.clear ()
  11. print (a)
  12. rozdelovac ()
  13. end
  14.  
  15. function rozdelovac ()
  16. if a == "1100" then
  17. update1 ()
  18. else
  19. print "Error"
  20. sleep (1)
  21. updates ()
  22. end
  23. end
  24.  
  25. function update1 ()
  26. shell.run ("pastebin run GGNFGVHU")
  27. end
  28.  
  29. diagnostic ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement