summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2007-10-21 16:39:24 +0300
committerThomas Bächler <thomas@archlinux.org>2007-10-21 16:12:05 +0200
commite3f7fc94d40e13f65e00adb3d7c48fb6f790c7d7 (patch)
tree9d304f22893f5b7e6485e335e7cb2f6ddee0f6b1
parentbbc2f945cb5df2ff103759ccb6de5183a87487b7 (diff)
make non-ASCII chars work before login too2007.11-1
Signed-off-by: Roman Kyrylych <roman@archlinux.org>
-rwxr-xr-xrc.sysinit6
1 files changed, 6 insertions, 0 deletions
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