summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-12-19 18:43:03 +0000
committerJudd Vinet <judd@archlinux.org>2005-12-19 18:43:03 +0000
commit33d5e65a50fa302f6863277c52c061af721a3c44 (patch)
treeacbe53fa5f2398e0be4eea539256a0f38cf269b3
parente4439a61bca626d05d3c6073ac94740db5c446c4 (diff)
final touches for utf8 stuff (Thanks Roman\!)
-rwxr-xr-xrc.sysinit12
1 files 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