Package: console-tools Version: 1:0.2.3dbs-67 Severity: normal Another patch that goes another way that is isolate the command and test true (0).
-- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-wleeepc (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages console-tools depends on: ii cdebconf [debconf-2.0] 0.146 Debian Configuration Management Sy ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy ii libc6 2.10.2-3 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
--- console-screen.sh-old 2010-01-04 02:18:18.000000000 +0100 +++ console-screen.sh-new 2010-01-04 02:23:12.000000000 +0100 @@ -82,8 +82,7 @@ CONSOLE_TYPE=`fgconsole 2>/dev/null` || return 0 if [ ! $CONSOLE_TYPE = "serial" ] ; then - readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console - if [ $? -eq 0 ] ; then + if (readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e /dev/console ) ; then VT="yes" reset_vga_palette fi