Re: CD-ROM support question.

Isaac Connor (iconnor@undergrad.math.uwaterloo.ca)
Sun, 16 Nov 1997 23:54:24 -0500 (EST)


On Sun, 16 Nov 1997, Lorenzo M. Catucci wrote:

> Dear readers,
> I'm following the question posed a couple of days ago by some
> other one, who asked whether it is possible to have an automounted cd-rom.
>

This seems like it should be simple to do...let's see, when do we need to
mount the CD? Only when someone tries to access it...which means we need
something to detect when someone takes a look at the mount point...

Now, all we need to do is trap when someone presses the eject
button...does doing so send any sort of signal? Can it be looked for?
If it can, when you press the button, we unmount the CD.. So we need two
things:

1. Something to detect a mount point access
2. Something to detect the Eject button press...

Isaac
iconnor@uwaterloo.ca