aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-04-03 16:25:19 +0000
committerBill Nottingham <notting@redhat.com>2003-04-03 16:25:19 +0000
commitf104533e4462d4caaa416e3d1a6b5a1284d66e02 (patch)
treeec0001ba7dd32f66993ee47669cf2c95e888f207
parent5217f545232d8d95444da2bae125f2b13f52900e (diff)
downloadinitscripts-f104533e4462d4caaa416e3d1a6b5a1284d66e02.tar
initscripts-f104533e4462d4caaa416e3d1a6b5a1284d66e02.tar.gz
initscripts-f104533e4462d4caaa416e3d1a6b5a1284d66e02.tar.bz2
initscripts-f104533e4462d4caaa416e3d1a6b5a1284d66e02.tar.xz
initscripts-f104533e4462d4caaa416e3d1a6b5a1284d66e02.zip
switch back
-rwxr-xr-xlang.csh6
-rwxr-xr-xlang.sh2
-rwxr-xr-xsetsysfont4
3 files changed, 8 insertions, 4 deletions
diff --git a/lang.csh b/lang.csh
index dfc4bad5..b119ca51 100755
--- a/lang.csh
+++ b/lang.csh
@@ -74,10 +74,12 @@ if ($sourced == 1) then
if ( $?TERM ) then
if ( "$TERM" == "linux" ) then
if ( `/sbin/consoletype` == "vt" ) then
- if ( $?SYSFONTACM ) then
+ if ( -x /bin/unicode_start ) then
+ if ( $?SYSFONTACM ) then
unicode_start $SYSFONT $SYSFONTACM
- else
+ else
unicode_start $SYSFONT
+ endif
endif
endif
endif
diff --git a/lang.sh b/lang.sh
index 534d465c..dd16e59d 100755
--- a/lang.sh
+++ b/lang.sh
@@ -70,7 +70,7 @@ if [ "$sourced" = 1 ]; then
case $LANG in
*.utf8*|*.UTF-8*)
if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
- unicode_start $SYSFONT $SYSFONTACM
+ [ -x /bin/unicode_start ] && unicode_start $SYSFONT $SYSFONTACM
fi
;;
esac
diff --git a/setsysfont b/setsysfont
index 7e44a9a8..70e8c6aa 100755
--- a/setsysfont
+++ b/setsysfont
@@ -8,7 +8,9 @@ fi
case "$LANG" in
*.utf8|*.UTF-8)
- exec unicode_start $SYSFONT $SYSFONTACM
+ if [ -x /bin/unicode_start ]; then
+ exec unicode_start $SYSFONT $SYSFONTACM
+ fi
;;
esac