Package: console-tools
Version: 1:0.2.3dbs-67
Severity: normal
The latest version of 'console-tools' still exhibits this bug. I have
been hacking '/etc/init.d/console-screen.sh' for quite a long time now,
through several revisions, and hope the fixes suggested for this bug
will finally be applied!
The latest version of 'console-screen.sh' has broken up the previous
function called setup() into several separate functions. With the new
version, I am using the following changes to keep the error in this boot
script from happening:
# diff console-screen.sh.{orig,new}
64a65,70
> # Try to be cleverer and run for all consoles, but this is run
> # _before_ getty and so only one console running. So,
> # Set for the first 6 VCs (as they are allocated in /etc/inittab)
> NUM_CONSOLES=`fgconsole --next-available`
> NUM_CONSOLES=$(($NUM_CONSOLES - 1))
> [ ${NUM_CONSOLES} -eq 1 ] && NUM_CONSOLES=6
110,116d115
< # Try to be cleverer and run for all consoles, but this is run
< # _before_ getty and so only one console running. So,
< # Set for the first 6 VCs (as they are allocated in /etc/inittab)
< NUM_CONSOLES=`fgconsole --next-available`
< NUM_CONSOLES=$(($NUM_CONSOLES - 1))
< [ ${NUM_CONSOLES} -eq 1 ] && NUM_CONSOLES=6
<
Just to review, the problem is caused by NUM_CONSOLES being undefined,
causing (in the latest version) setup_keyboard() to fail in this loop:
while [ $i -le $NUM_CONSOLES ]
do
setleds -D $LEDS < $DEVICE_PREFIX$i
i=$(($i + 1))
done
It would seem that NUM_CONSOLES is now defined by the setup_fonts()
function, which is called before setup_keyboard(), but I was still
getting the error in the while loop. Making the changes that I showed
fixed the problem for me (again).
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (350, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32.2-0git+k10temp+f71889fg+r600fix.091222.desktop.kms (SMP
w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages console-tools depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib
ii libconsole 1:0.2.3dbs-67 Shared libraries for Linux console
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
Versions of packages console-tools recommends:
ii console-common 0.7.85 basic infrastructure for text cons
ii console-data 2:1.10-2 keymaps, fonts, charset maps, fall
Versions of packages console-tools suggests:
pn kbd-compat <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]