aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-07 15:28:55 +0000
committerBill Nottingham <notting@redhat.com>1999-07-07 15:28:55 +0000
commit77b0bb06a826bff3e745bc10d2aff30bef514fe8 (patch)
treeb53bf6cb38c6fff2d6528e62710dba0386c20b71 /lang.sh
parenta85467e47ddb766356552452059f883892ef92a4 (diff)
downloadinitscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar
initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.gz
initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.bz2
initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.xz
initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.zip
fixes from nkbj@image.dk
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh35
1 files changed, 2 insertions, 33 deletions
diff --git a/lang.sh b/lang.sh
index e85fe9c8..8890453c 100755
--- a/lang.sh
+++ b/lang.sh
@@ -12,38 +12,7 @@ if [ -f /etc/sysconfig/i18n ]; then
[ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
[ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
-
- # deprecated
- if [ -n "$SYSTERM" ]; then
- export TERM=$SYSTERM
- fi
-
- if [ -n "$SYSFONTACM" ]; then
- case $SYSFONTACM in
- iso01*|iso02*|iso15*|koi*)
- LESSCHARSET=latin1
- export LESSCHARSET INPUTRC
- if [ "$TERM" = "linux" ]; then
- if ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1; then
- echo -n -e '\033(K' > /proc/$$/fd/0
- fi
- fi
- ;;
- esac
- fi
-
- if [ -n "$INPUTRC" ]; then
- export INPUTRC
- fi
-
- if [ -n "$LESSCHARSET" ]; then
- export LESSCHARSET
- elif [ "$TERM" = "linux-lat" ]; then
- LESSCHARSET=latin1
- export LESSCHARSET
- fi
-
+ [ -n "$INPUTRC" ] && export INPUTRC || unset INPUTRC
+ [ -n "$LESSCHARSET" ] && export LESSCHARSET || unset LESSCHARSET
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
-
- unset SYSFONTACM
fi