[PATCH] eject -T support
Aurelien Jacobs
aurel at gnuage.org
Mon Oct 2 04:43:08 PDT 2006
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
More information about the busybox
mailing list