Advertisement
Guest User

startup

a guest
Jan 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. passwort = "ass"
  5. console = "abcdefg"
  6. write("Bitte geben Sie ihr Passwort ein: ")
  7. input = read("*")
  8.  
  9. if input == passwort then
  10. print("Passwort richtig!")
  11. rs.setOutput("left",true)
  12. sleep(5)
  13. rs.setOutput("left",false)
  14. os.shutdown()
  15.  
  16. elseif input == console then
  17. shell.run("boot")
  18.  
  19. else
  20. print("Passwort falsch!")
  21. print("Bitte versuchen Sie es erneut!")
  22. sleep(3)
  23. os.reboot()
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement