Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.redirect( peripheral.wrap( "bottom" ) )
- term.clear()
- term.setBackgroundColour( colours.black )
- _, s = os.pullEvent( "disk" )
- if fs.exists("disk/.details") then
- file = fs.open( "disk/.details", "r" ).readAll()
- if file == "95a230a17c02d52e2bf7ca45664e1b4f0c68c05fe2f79cd9d1d843f3c40b4020" then
- term.setBackgroundColour( colours.green )
- disk.eject( "left" )
- sleep( 2 )
- term.setBackgroundColour( colours.black )
- else
- term.setBackgroundColour( colours.red )
- disk.eject( "left" )
- sleep( 2 )
- term.setBackgroundColour( colours.black )
- end
- else
- term.setBackgroundColour( colours.red )
- disk.eject( "left" )
- sleep( 2 )
- term.setBackgroundColour( colours.black )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment