Package: console-tools Version: 1:0.2.3dbs-65 Severity: normal Tags: patch The console-screen.sh scripts sets the NUM_CONSOLES variable only if setting a global default font, but it's also referenced if setting the keyboard LEDS (which is run independently). The patch below simply relocates the variable assignment, to make it available for both tasks.
*** console-screen.sh.diff --- console-screen.sh.orig 2006-09-05 11:15:12.000000000 -0500 +++ console-screen.sh 2006-09-09 14:38:20.000000000 -0500 @@ -82,6 +82,13 @@ [ $VT = "no" ] && return 0 + # Try to be clever and determine the total number of 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 + # start vcstime if [ "${DO_VCSTIME}" = "yes" -a -x ${VCSTIME} ] ; then [ "$VERBOSE" != "no" ] && log_action_begin_msg "Starting clock on text console" @@ -99,12 +106,6 @@ # maybe use an external SFM [ "${SCREEN_FONT_MAP}" ] && SCREEN_FONT_MAP="-u ${SCREEN_FONT_MAP}" - # 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 i=1 while [ $i -lt $NUM_CONSOLES ] do -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17.13 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages console-tools depends on: ii debconf [debconf-2.0] 1.5.3 Debian configuration management sy ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries ii libconsole 1:0.2.3dbs-65 Shared libraries for Linux console ii lsb-base 3.1-15 Linux Standard Base 3.1 init scrip Versions of packages console-tools recommends: ii console-common 0.7.61 Basic infrastructure for text cons ii console-data 2:1.0-2 Keymaps, fonts, charset maps, fall -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]