In my linux bash script I want to wait for one of the following events:
- DVD drive tray was closed by the user,
- writeable DVD was inserted to the drive.
Unfortunately all the commands to check the media in drive first close the tray and I don't want to do that - it should stay open and wait for DVD being inserted by the user.
Could you please advice me how to do that?