Is there a simple way of determining if there is a disc in a CD/DVD drive?
Something in /proc would be nice. Is there any other sort of information
availble such as what type of disc is in the drive?
--adam
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen!
Hi
open the cd drive in non blocking mode then
do some ioctls to get the info you require.
or cdrecord i think has an option to dump the info.
On Mon, 2002-12-23 at 21:02, Adam Hunt wrote:
> Is there a simple way of determining if there is a disc in a CD/DVD drive?
> Something in /proc would be nice. Is there any other sort of information
> availble such as what type of disc is in the drive?
>