Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- passkey = "PASSWORD"
- while true do
- if disk.isPresent("SIDE") then -- Put side to the side the disk drive is on
- h = fs.open("disk/passcode", "r")
- if h.readAll() == passkey then
- print("Accepted")
- -- Insert anything here for the code, rs.setOutput() whatever..
- else
- print("Denied")
- disk.eject("side") -- Replace side with diskdrive side
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement