[BusyBox] applett chvt via glibc-2.1.3 / kernel-2.2.19
Vladimir N. Oleynik
dzo at simtreas.ru
Thu Nov 21 04:16: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;
--w
vodz
More information about the busybox
mailing list