aboutsummaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
Diffstat (limited to 'setsysfont')
-rwxr-xr-xsetsysfont22
1 files changed, 6 insertions, 16 deletions
diff --git a/setsysfont b/setsysfont
index afa14a81..8790153a 100755
--- a/setsysfont
+++ b/setsysfont
@@ -6,22 +6,11 @@ if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi
-if [ -n "$LANG" ]; then
- case $LANG in
- *.utf8|*.UTF-8)
- if [ -n "$SYSFONT" ]; then
- if [ -n "$SYSFONTACM" ]; then
- unicode_start $SYSFONT $SYSFONTACM
- else
- unicode_start $SYSFONT
- fi
- else
- unicode_start
- fi
- exit $?
- ;;
- esac
-fi
+case "$LANG" in
+ *.utf8|*.UTF-8)
+ exec unicode_start $SYSFONT $SYSFONTACM
+ ;;
+esac
if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then
if [ -n "$SYSFONT" ]; then
@@ -46,4 +35,5 @@ else
echo $"can't set font"
exit 1
fi
+
exit 0