From d2ae38c8b06d057c7593b7ba836bf24a1f8f6c4f Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 5 Aug 2008 14:34:53 -0400 Subject: Set kbd_mode on all virtual consoles Previous behavior only set the mode for vc0. See FS#11093 Signed-off-by: Aaron Griffin --- rc.sysinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index c838a15..6ac22c4 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -361,8 +361,8 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then # UTF-8 consoles are default since 2.6.24 kernel # this code is needed not only for older kernels, # but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8. - /usr/bin/kbd_mode -u for i in $(/usr/bin/seq 0 63); do + usr/bin/kbd_mode -u < /dev/vc/${i} printf "\e%%G" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron @@ -372,8 +372,8 @@ if echo "$LOCALE" | /bin/grep -qi utf ; then else stat_busy "Setting Consoles to legacy mode" # make non-UTF-8 consoles work on 2.6.24 and newer kernels - /usr/bin/kbd_mode -a for i in $(/usr/bin/seq 0 63); do + /usr/bin/kbd_mode -a < /dev/vc/${i} printf "\e%%@" > /dev/vc/${i} done # the $CONSOLE check helps us avoid this when running scripts from cron -- cgit v1.2.3