aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlang.sh37
1 files changed, 27 insertions, 10 deletions
diff --git a/lang.sh b/lang.sh
index 5f17639f..540ba464 100755
--- a/lang.sh
+++ b/lang.sh
@@ -1,15 +1,32 @@
+#!/bin/bash
+
if [ -f /etc/sysconfig/i18n ]; then
- . /etc/sysconfig/i18n
+ . /etc/sysconfig/i18n
- if [ -n "$LANG" ]; then
- export LANG
- fi
+ if [ -n "$LANG" ]; then
+ export LANG
+ fi
- if [ -n "$LINGUAS" ]; then
- export LINGUAS
- fi
+ if [ -n "$LINGUAS" ]; then
+ export LINGUAS
+ fi
- if [ -n "$SYSTERM" ]; then
- export TERM=$SYSTERM
- fi
+ if [ -n "$SYSTERM" ]; then
+ export TERM=$SYSTERM
+ fi
+
+ # Set console font map.
+ if [ -n "$UNIMAP" ]; then
+ loadunimap $UNIMAP
+ fi
+
+ if [ -n "$SYSTEM" ] ; then
+ case $SYSTEM in
+ linux-lat)
+ LESSCHARSET=latin1
+ INPUTRC=/etc/inputrc
+ export LESSCHARSET INPUTRC
+ ;;
+ esac
+ fi
fi