Hi, I have Mandrake 8.1, and I found the package! it is
autofs, which manages the daemon in charge to
check the mounting every tot secs! The idea is then
that it automatically mounts the cdrom as soon as I try
to access it, and unmounts it after tot secs if notin use!
however, the firts option is already supported by KDE,
and as for the second one I can unmount simply asking
the cdrom to eject the disk, so....no help I think
unless you had something else in mind...
Also, I just verified that the mount command does not
return apparently any boolean value in response to the
operation of mounting, which seems incredible
8verified in a shell script as well as perl one).
However, I have written a c++ little program using
the sys/mount.h library where the mount
function returns a proper flag (=0 success, -1 failure)
together with an errn variable (to be found in <errn.h>)
which contains a numerical value which clearly and
univoquely defines the cause of trouble if any, so I think
I may just use this? (the idea is to setuid this
little program so that any user can launch it, which is
probably yhe way it is done in KDE as well, as only root
can use mount anyway)..
let me know of any cleverer way to do it, or if the way
I am tring is just dumb for some reason
Alex