aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorCristian Gafton <gafton@redhat.com>1998-09-25 19:15:55 +0000
committerCristian Gafton <gafton@redhat.com>1998-09-25 19:15:55 +0000
commit9323508a348b5804df65ce34d3731c46ca1bc1c0 (patch)
tree1775f237e367d06d84e6f1cc0dbf8ae6df9c8e16 /lang.sh
parent7818f2b452b26ed27725c3709f358a1b3463eba3 (diff)
downloadinitscripts-9323508a348b5804df65ce34d3731c46ca1bc1c0.tar
initscripts-9323508a348b5804df65ce34d3731c46ca1bc1c0.tar.gz
initscripts-9323508a348b5804df65ce34d3731c46ca1bc1c0.tar.bz2
initscripts-9323508a348b5804df65ce34d3731c46ca1bc1c0.tar.xz
initscripts-9323508a348b5804df65ce34d3731c46ca1bc1c0.zip
Set INPUTRC and LESSCHARSET on linux-lat systems
Diffstat (limited to 'lang.sh')
-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