ulvis.paste.net

Paste Search Dynamic
Recent pastes
[LUA] startup.lua
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. local sys_pass = "1311"
  4.  
  5.    
  6.  
  7.     textutils.slowPrint("please enter the password")
  8.     local usr_pass = read("*")
  9.    
  10.    if usr_pass == sys_pass then
  11.     print("password accepted")
  12.     term.clear()
  13.     term.setCursorPos(1,1)
  14.    else
  15.     print("incorrect password")
  16.     sleep(1)
  17.     os.shutdown()  
  18.    end
Parsed in 0.001 seconds