[BusyBox] applett chvt via glibc-2.1.3 / kernel-2.2.19
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Nov 21 06:19:03 UTC 2002
Stephan,
> > > these days I've tried out to use chvt to change foreground virtual
> > > terminal via shell script, but nothing was working. I find out, that
> > > there is an error at my target caused by chvt. see below:
> > >
> > > ~ # chvt 5
> > > chvt: VT_ACTIVATE: Bad file descriptor
> > > ~ # _
> > >
> > > Hm, I don't know about this message, because the same busybox binary is
> > > working fine at my RedHat 7.1 host system. Here my environment:
> >
> > Hmm. I examined libbb/get_console. This file have strange code, my changes
> > from last_patch52 don`t changing this strange algorithm.
> >
> > Please remove lines from libbb/get_console and put result:
> >
> > if (-1 == (fd = open_a_console("/dev/console")))
> > return -1;
> > else
> > return fd;
>
> great, it works now :-) -- but why ???
These lines always return without running next lines.
Why? I don`t know. Is not my code. Author may be mixing code
from open console (init) and console tools.
Regular "kbd" utils have this code without this lines.
--w
vodz
More information about the busybox
mailing list