Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rfid = peripheral.wrap("back")
- if disk.isPresent("bottom") then
- if disk.hasData("bottom") then
- local file = fs.open("disk/A","r")
- local Alias = file.readLine()
- local Pass = file.readLine()
- file.close()
- if rfid.isPresent() then
- rfid.encode(Alias .. "." ..Pass,"KI")
- os.pullEvent("rfid_written")
- local endfile = fs.open("disk/E","w")
- endfile.close()
- sleep(5)
- os.reboot()
- end
- end
- end
Add Comment
Please, Sign In to add comment