aboutsummaryrefslogtreecommitdiffstats
path: root/lang.sh
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@redhat.com>2001-05-02 18:59:51 +0000
committerBernhard Rosenkraenzer <bero@redhat.com>2001-05-02 18:59:51 +0000
commitd3d03d15bf72d193466fb97ad876a8ae9120a2b3 (patch)
tree7d8862c29db681f2e9ffd40f796a3b92ba7bd6b2 /lang.sh
parentfea1fc7c432d8c1d756faf32664e98a2372f34e7 (diff)
downloadinitscripts-d3d03d15bf72d193466fb97ad876a8ae9120a2b3.tar
initscripts-d3d03d15bf72d193466fb97ad876a8ae9120a2b3.tar.gz
initscripts-d3d03d15bf72d193466fb97ad876a8ae9120a2b3.tar.bz2
initscripts-d3d03d15bf72d193466fb97ad876a8ae9120a2b3.tar.xz
initscripts-d3d03d15bf72d193466fb97ad876a8ae9120a2b3.zip
Support kbd in lang.{c,}sh
Diffstat (limited to 'lang.sh')
-rwxr-xr-xlang.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang.sh b/lang.sh
index 0a65fdc9..c7e0dc37 100755
--- a/lang.sh
+++ b/lang.sh
@@ -34,7 +34,15 @@ if [ "$sourced" = 1 ]; then
fi
[ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
- if [ -n "$SYSFONTACM" ]; then
+ if [ -n "$CHARSET" ]; then
+ case $CHARSET in
+ 8859-1|8859-2|8859-15|koi*)
+ if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
+ echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0
+ fi
+ ;;
+ esac
+ elif [ -n "$SYSFONTACM" ]; then
case $SYSFONTACM in
iso01*|iso02*|iso15*|koi*|latin2-ucw*)
if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then