Advertisement
Guest User

startup

a guest
Jul 28th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local standby = 1000
  2. local side = "back"
  3. local password = "7077"
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. write("PIN Required: ")
  7. local input = read("*")
  8. if input == password then
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Access Granted")
  12. rs.setOutput(side,true)
  13. sleep(Standby)
  14. rs.setOutput(side,false)
  15. os.reboot()
  16. else
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("Access Denied")
  20. sleep(Standby)
  21. os.reboot()
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement