Advertisement
Guest User

startup

a guest
Mar 22nd, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local password_enabled = "true"
  2. local password = "monkey"
  3. print( " Welcome! This Terminal is currently " )
  4. print( " Setup For Testing! " )
  5. print( " Press Any Key To Continue " )
  6. read()
  7. term.clear()
  8. print( " Please Enter Your Password! " )
  9. while password_enabled == true do
  10. if read("*") == password then
  11. term.clear()
  12. print( " Successfully Authenticated! " )
  13. break()
  14. else
  15. term.clear()
  16. print( " Password Invallid! " )
  17. print( " OS Will Now Reboot! " )
  18. sleep(5)
  19. os.reboot()
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement