[Pkg-kbd-devel] Bug#443606: Improvements for kbd?

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Apr 6 23:06:46 UTC 2008


Hello,

I'm hitting the converse bug: now that linux 2.6.24 is unicode by
default, the kbd scripts don't manage to set the 2-6 consoles back to
8bit.  That becomes quite of a problem since that prevents from e.g.
typing accented letters.

Anton Zinoviev, le Wed 10 Oct 2007 01:37:01 +0300, a écrit :
> Regarding #443606, the reason this problem happens is the following
> fragment in /etc/init.d/console-screen.kbd.sh:
> 
>     if [ "$RUNLEVEL" = S ]; then
>         LIST_CONSOLES=0
>     elif [ -z "$LIST_CONSOLES" ]; then
>         #  Wait for getty to provide TTYs
>         sleep 3
>         LIST_CONSOLES=`sed -e '/^ *#/d' /etc/inittab | grep 'tty[0-9]*$' | awk -
> F: '{printf "%s ", $1}'`
>     fi
> 
> I have no idea why if RUNLEVEL is S (and it is S when the script is
> invoked), then only the first console is configured.

Maybe the intent was actually 1 (i.e. single user mode, in which only
the first console is used), but then console-screen.kbd.sh should be
also called in other levels, i.e. debian/rules should rather contain
something like

dh_installinit --init-script=console-screen.kbd.sh -r -u"start 01 1 2 3 4 5."

> I also don't know the purpose of this "sleep 3" command.

I'm also really wondering about it.

So my guess is that the fix should be either using

dh_installinit --init-script=console-screen.kbd.sh -r -u"start 01 1 2 3 4 5."

in debian/rules, so that only the first console is setup in runlevel 1,
or

console-screen.kbd.sh should just drop the if [ "$RUNLEVEL" = S ] case.

Samuel





More information about the Pkg-kbd-devel mailing list