kingalekai

OS

Aug 18th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.18 KB | None | 0 0
  1. if not pocket then
  2.   if not fs.exists("clear")
  3.   then
  4.     shell.run("copy disk/phone/progCL clear")
  5.   end
  6. end
  7.  
  8. local oldPullEvent = os.pullEvent
  9. os.pullEvent = os.pullEventRaw
  10.  
  11. if pocket then
  12. shell.run("cd phone")
  13. -- Check for updates
  14. shell.run("clear")
  15. shell.run("pastebin run pwPUAUfw")
  16. if NewestVer == Ver then
  17.   shell.run("info")
  18. else
  19.   shell.run("Update")
  20. end
  21. -- end of check
  22. else
  23. shell.run("cd disk/phone")
  24. -- Check for updates
  25. shell.run("clear")
  26. shell.run("pastebin run pwPUAUfw")
  27. if NewestVer == Ver then
  28.   shell.run("info")
  29. else
  30.   shell.run("Update")
  31. end
  32. -- end of check
  33. shell.run("info")
  34. end
  35.  
  36. if user == "" and pass == "" then
  37.     term.write("never seen")
  38.     shell.run("clear")
  39.     term.setCursorPos(1,4)
  40.     os.pullEvent = oldPullEvent
  41. else
  42.  
  43. term.clear()
  44. term.setCursorPos(1,1)
  45. term.write("Username:")
  46. input = read()
  47.  
  48. if input == user then
  49.   term.setCursorPos(1,2)
  50.   term.write("Enter pin:")
  51.   input2 = read("*")
  52.  
  53.   if input2 == pass or input2 == devpass then
  54.     term.write("never seen")
  55.     shell.run("clear")
  56.     term.setCursorPos(1,4)
  57.     os.pullEvent = oldPullEvent
  58.     else
  59.     os.reboot()
  60.   end
  61.   else
  62.   os.reboot()
  63. end
  64. end
Add Comment
Please, Sign In to add comment