Package: console-tools
Version: 1:0.2.3dbs-65.1
Severity: important
Tags: patch
So that if the ${SCREEN_FONT} is not set, setleds section can not run,
the script will print the following message since the ${NUM_CONSOLES}
is not set:
./console-screen.sh: line 214: [: 1: unary operator expected
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=zh_CN.utf8, LC_CTYPE=zh_CN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages console-tools depends on:
ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy
ii libc6 2.7-15 GNU C Library: Shared libraries
ii libconsole 1:0.2.3dbs-65.1 Shared libraries for Linux console
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
Versions of packages console-tools recommends:
ii console-common 0.7.80 basic infrastructure for text cons
ii console-data 2:1.07-11 keymaps, fonts, charset maps, fall
Versions of packages console-tools suggests:
pn kbd-compat <none> (no description available)
-- no debconf information
--- console-screen.sh 2008-10-31 12:37:41.000000000 +0800
+++ console-screen.sh.new 2008-10-31 12:31:12.000000000 +0800
@@ -87,6 +87,12 @@
[ "$VERBOSE" != "no" ] && log_action_end_msg 0
fi
+ # 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
# Global default font+sfm
if [ "${SCREEN_FONT}" ]
@@ -97,12 +103,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