--[[
"*READ THIS NOTE*
Replace 'pass' on line 6 with your own password
Replace 'Welcome to King Rastey's Computer' on line 10 with your own MOTD
Replace 'left' on line 15 and 17 with the direction of your door relative to the computer"
]]
local password = "pass"
while true do
term.clear()
term.setCursorPos(1, 1)
print(" Welcome to King Rastey's Computer")
print("Please Enter Password:")
input = read("*")
if input == "password" then
print("Password Correct")
redstone.setOutput("left", true)
sleep(2)
redstone.setOutput("left", false)
os.shutdown()
else if
print("Password Incorrect")
sleep(2)
os.reboot()
end
end