diff options
Diffstat (limited to 'lang.sh')
-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 |