Hi! Tomorrow I'll leave in Easter rholiday and I want to take my Linux box
with me. Unfortunatelly, I cannot take the monitor with me, so I want
to transform my box in a juke box that should work as follow:

- I start it
- I insert a CD-ROM with mp3s
- it play it
- I want anotrer disk, I eject the previous, I insert tne new one and it
play it
- etc.

The ideea is that I have to work without typing on keyboard, because I
don't have any monitor with me. I have to work only with insert/eject
button from the CD-ROM drive front panel.

Last night I dig in the kernel sources and I found in ide-cd.h a define
that allow me to eject a mounted CD-ROM.

Now, all what I need is a software solution (program) that automatically:
- detect when a CD was plugged in, and to start a particular script (that
mount that CD, make a playlist and play it)
- detect when a CD was ejected, and start another particular script (that
kill mpg123 and umount the disk

I tried autorun but it has two major disadvantages: it runs under X and it
too smart on ejecting CD (he prompt me with a windows saying that drive is
busy, instead to run the command that I want).

Autofs and amd have diffrent purposes.

Right now I compile my kernel with supermount.

The question is: does anybody have any ideea where I can fine a program
that performs the task described bellow? Does anybody do before such a
Linux jukebox? Can you give me any more suggestions?

Thx in advance,
  Socrate

P.S. One more question: how can I recognize that a CD in a CD-ROM drive is
an audio CD or a CD-ROM, BEFORE trying to mount it?

------------------------------------------------------------------------
Radu Filip                                 http://www.tuiasi.ro/socrate/

Network Administrator                                     [EMAIL PROTECTED]
@CCTI | tuiasi.ro                                  http://www.tuiasi.ro/
------------------------------------------------------------------------

Reply via email to