Lithia

verify LithiumOS7.0 (CHANGE WHEN UPDATE)

Dec 13th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.setCursorPos(1, 1)
  3. term.clear()
  4. print("----------------")
  5. print("Checking Version")
  6. print("----------------")
  7. shell.run("pastebin", "get", "qjP51EzM", "versioncheck")
  8. shell.run("versioncheck")
  9. shell.run("delete", "versioncheck")
  10. version = "nine"
  11. nextversion = "ten"
  12. if version == nextversion then
  13.    uptodate = "false"
  14. elseif version == version then
  15.     term.setCursorPos(1, 1)
  16.     term.clear()
  17.     print("----------------")
  18.     print("Checking Version")
  19.     print("----------------")
  20.     print("Version Up to date")
  21.     uptodate = "true"
  22.     sleep(1)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment