[PATCH] eject -T support

Tito farmatito at tiscali.it
Sat Oct 7 21:50:48 UTC 2006


On Saturday 7 October 2006 23:12, Denis Vlasenko wrote:
> On Saturday 07 October 2006 18:44, Tito wrote:
> > On Saturday 7 October 2006 18:19, Denis Vlasenko wrote:
> > > On Saturday 07 October 2006 17:47, Tito wrote:
> > > > > I have an idea: remove that code entirely, then:
> > > > > 
> > > > > #!/bin/sh
> > > > > umount /dev/cdrom
> > > > > eject
> > > > > 
> > > > > Would this work?
> > > > 
> > > > I don't think so. One test I did was to use
> > > > 
> > > > umount_main()
> > > > 
> > > > instead of the actual code but this gave me some errors on one
> > > > of the two cases depending if I fed the device or the mount dir 
> > > > as args.
> > > 
> > > I tested it and it worked for me as shell script.
> > 
> > With busybox umount!?
> 
> Yes:
> 
In this simple case I know it works.
Do it work also with multiple mounts of cdrom
or with overmounts?

PS: maybe I've found a viable solution, I'm testing it, more tomorrow.

Ciao,
Tito



More information about the busybox mailing list