From e3f7fc94d40e13f65e00adb3d7c48fb6f790c7d7 Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Sun, 21 Oct 2007 16:39:24 +0300 Subject: make non-ASCII chars work before login too Signed-off-by: Roman Kyrylych --- rc.sysinit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc.sysinit b/rc.sysinit index 8c157d9..f4729bf 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -348,6 +348,9 @@ stat_done if echo "$LOCALE" | /bin/grep -qi utf ; then stat_busy "Setting Consoles to UTF-8" /usr/bin/kbd_mode -u + for i in $(seq 1 63); do + echo -ne "\e%G" > /dev/vc/${i} + done # the $CONSOLE check helps us avoid this when running scripts from cron echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e%G"; fi' >>/etc/profile.d/locale.sh stat_done @@ -373,6 +376,9 @@ if [ -n "$CONSOLEFONT" ]; then /usr/bin/setfont $CONSOLEFONT -C /dev/vc/${i} fi done + for i in $(seq 1 63); do + echo -ne "\e(K" > /dev/vc/${i} + done # the $CONSOLE check helps us avoid this when running scripts from cron echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then echo -ne "\e(K"; fi' >>/etc/profile.d/locale.sh stat_done -- cgit v1.2.3