Advertisement
CodeCrafter

updateCheck

Feb 14th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. print("checking for updates...")
  2. sleep(3)
  3.  
  4. while rednet.receive() do
  5. print("Update enable!")
  6.  
  7. else
  8. print("No update enable")
  9. sleep(3)
  10. shell.run("menu")
  11. end
  12.  
  13. x = io.read()
  14.  
  15. if x == "ja" then
  16. shell.run("Update")
  17.  
  18. if x == "nee" then
  19. shell.run("menu")
  20.  
  21. else
  22. print("Give a command")
  23. shell.run("update check")
  24. end
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement