[PATCH] eject -T support
Tito
farmatito at tiscali.it
Mon Oct 2 13:25:47 PDT 2006
On Monday 2 October 2006 13:43, Aurelien Jacobs wrote:
> On Sun, 1 Oct 2006 16:15:40 +0200
> Tito <farmatito at tiscali.it> wrote:
>
> > On Thursday 28 September 2006 23:59, Aurelien Jacobs wrote:
> > > Hi,
> > >
> > > This patch add support for the -T option to eject.
> > > It allows to open or close the tray depending on it's current state.
> > > It's very handy on embeded systems where you want to bind a single button
> > > to the tray opening/closing.
> > >
> > > Aurel
> > >
> >
> > Hi,
> > maybe you will take a look to this alternative implementation
> > that is simpler, less in size (at least accordingly to make bloatcheck)
> > and seems to do the same job (but i haven't tested it heavily....)
>
> Hum... it is indeed smaller, but unfortunatly it don't work :-(
> eject -T don't close the tray when it's open. You can't rely on the return
> value of ioctl(dev,CDROMEJECT) to detect if the tray was already open or
> not.
>
> Aurel
:-(
I should have been testing it longer.....
Ciao,
Tito
More information about the busybox
mailing list