summaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-06-26 09:02:16 +0000
committerFlorian La Roche <laroche@redhat.com>2002-06-26 09:02:16 +0000
commitb1c3fe8675bf6d6831b2d63adb42dc43ef96f69e (patch)
tree4298e55eca3bc8b767ae7cf695261cd119d75712 /setsysfont
parenta12d5004ebd0035494247f71c5cebc060729c569 (diff)
downloadinitscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.gz
initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.xz
initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.zip
- start cleaning up some sh coding things
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