aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
blob: c6189c07da838192d991970121e0bb2b07414122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

if [ -f /etc/sysconfig/i18n ]; then
    . /etc/sysconfig/i18n

    if [ -n "$LANG" ]; then
	export LANG
    fi
  
    if [ -n "$LINGUAS" ]; then
	export LINGUAS
    fi
  
    if [ -n "$SYSTERM" ]; then
	export TERM=$SYSTERM
    fi

    # Set console font map.
    if [ -n "$UNIMAP" ]; then
	loadunimap $UNIMAP
    fi

    if [ -n "$SYSTERM" ] ; then
	case $SYSTERM in
	    linux-lat)
		LESSCHARSET=latin1
		INPUTRC=/etc/inputrc
		export LESSCHARSET INPUTRC
		;;
	esac
    fi
fi