Advertisement
jjr2000

Untitled

Dec 2nd, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. yogscast = "yogscast"
  2. close = "close"
  3. print ("jrabba_co.os")
  4. print ("please enter password")
  5. input = read("*")
  6. if input == yogscast then
  7.    print ("correct password")
  8.    shell.run("yogscast")
  9. elseif input == close then
  10.    print ("ok")
  11.    shell.run("close")
  12. else
  13.    print ("incorrect password")
  14.    sleep(2)
  15.    os.shutdown()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement