From 33d5e65a50fa302f6863277c52c061af721a3c44 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Mon, 19 Dec 2005 18:43:03 +0000 Subject: final touches for utf8 stuff (Thanks Roman\!) --- rc.sysinit | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index e988cd0..078656d 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -210,12 +210,13 @@ if [ "$KEYMAP" != "" ]; then status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP fi - +# Flush old locale settings +: >/etc/profile.d/locale.sh +chmod 755 /etc/profile.d/locale.sh # Set user defined locale if [ "$LOCALE" != "" ]; then stat_busy "Setting Locale: $LOCALE" - echo "export LANG=$LOCALE" >/etc/profile.d/locale.sh - /bin/chmod 755 /etc/profile.d/locale.sh + echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh stat_done # If locale is *.utf set console to Unicode mode @@ -226,10 +227,7 @@ if [ "$LOCALE" != "" ]; then echo 'echo -ne "\e%G"' >>/etc/profile.d/locale.sh stat_done fi -else - rm -f /etc/profile.d/locale.sh fi - if [ "$CONSOLEFONT" != "" ]; then stat_busy "Loading Console Font: $CONSOLEFONT" for i in `seq 1 12`; do @@ -238,7 +236,7 @@ if [ "$CONSOLEFONT" != "" ]; then else /usr/bin/setfont $CONSOLEFONT -C /dev/vc/${i} fi - echo -ne "\e(K" >/dev/vc/${i} + echo 'echo -ne "\e(K"' >>/etc/profile.d/locale.sh done stat_done fi -- cgit v1.2.3