Advertisement
Guest User

startup

a guest
Mar 31st, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local m = peripheral.wrap("top")
  2. print("Passwort:")
  3. Passw = io.read()
  4. if Passw == "DB" then
  5. rs.setOutput("left",true)
  6. term.clear()
  7. sleep(3)
  8. rs.setOutput("left",false)
  9. shell.run("reboot")
  10.  
  11. else
  12. term.clear()
  13. term.setCursorPos(1, 1)
  14. print("falsches Passwort")
  15. shell.run("reboot")
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement