diff options
author | Bill Nottingham <notting@redhat.com> | 2003-03-03 21:04:05 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-03-03 21:04:05 +0000 |
commit | aac707b24ff964ab16c886a760adf63af3ff71b2 (patch) | |
tree | 01a3b0cc00af1e7cc3494933bc3a64bad153fb66 | |
parent | f19fe45b3669acc1683d34334fa62a355212213e (diff) | |
download | initscripts-aac707b24ff964ab16c886a760adf63af3ff71b2.tar initscripts-aac707b24ff964ab16c886a760adf63af3ff71b2.tar.gz initscripts-aac707b24ff964ab16c886a760adf63af3ff71b2.tar.bz2 initscripts-aac707b24ff964ab16c886a760adf63af3ff71b2.tar.xz initscripts-aac707b24ff964ab16c886a760adf63af3ff71b2.zip |
check for unicode_start before invocation (#85413)
-rwxr-xr-x | lang.csh | 6 | ||||
-rwxr-xr-x | lang.sh | 2 | ||||
-rwxr-xr-x | setsysfont | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -74,10 +74,12 @@ if ($sourced == 1) then if ( $?TERM ) then if ( "$TERM" == "linux" ) then if ( `/sbin/consoletype` == "vt" ) then - if ( $?SYSFONTACM ) then + if ( -f /bin/unicode_start ) then + if ( $?SYSFONTACM ) then unicode_start $SYSFONT $SYSFONTACM - else + else unicode_start $SYSFONT + endif endif endif endif @@ -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 + [ -f /bin/unicode_start ] && unicode_start $SYSFONT $SYSFONTACM fi ;; esac @@ -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 |