diff options
author | Florian La Roche <laroche@redhat.com> | 2002-06-26 09:02:16 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-06-26 09:02:16 +0000 |
commit | b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e (patch) | |
tree | 4298e55eca3bc8b767ae7cf695261cd119d75712 /setsysfont | |
parent | a12d5004ebd0035494247f71c5cebc060729c569 (diff) | |
download | initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.gz initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.bz2 initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.xz initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.zip |
- start cleaning up some sh coding things
Diffstat (limited to 'setsysfont')
-rwxr-xr-x | setsysfont | 22 |
1 files changed, 6 insertions, 16 deletions
@@ -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 |