diff options
author | Cristian Gafton <gafton@redhat.com> | 1998-09-25 19:15:55 +0000 |
---|---|---|
committer | Cristian Gafton <gafton@redhat.com> | 1998-09-25 19:15:55 +0000 |
commit | 9323508a348b5804df65ce34d3731c46ca1bc1c0 (patch) | |
tree | 1775f237e367d06d84e6f1cc0dbf8ae6df9c8e16 | |
parent | 7818f2b452b26ed27725c3709f358a1b3463eba3 (diff) | |
download | initscripts-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
-rwxr-xr-x | lang.sh | 37 |
1 files changed, 27 insertions, 10 deletions
@@ -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 |