summaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-11-20 21:00:04 +0000
committerBill Nottingham <notting@redhat.com>2006-11-20 21:00:04 +0000
commite739f568d2777448cad09df31192784bb094077c (patch)
treeb7a907fc97ff2f9d0996bc84e23e95141a8e8bef /setsysfont
parent198ec5d6154de98b7362b8d7ab39892f202c444f (diff)
fix KEYTABLE, setsysfont when serial console is present (#150769)
Diffstat (limited to 'setsysfont')
-rwxr-xr-xsetsysfont19
1 files changed, 7 insertions, 12 deletions
diff --git a/setsysfont b/setsysfont
index 9dfca891..0a612898 100755
--- a/setsysfont
+++ b/setsysfont
@@ -12,20 +12,15 @@ case "$LANG" in
exec unicode_start $SYSFONT $SYSFONTACM
fi
;;
+ *)
+ if /sbin/consoletype fg ; then
+ # no exec, unicode_stop does not set a font
+ unicode_stop
+ fi
+ ;;
esac
-if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then
- if [ -n "$SYSFONT" ]; then
- ARGS=$SYSFONT
- if [ -n "$UNIMAP" ]; then
- ARGS="$ARGS --sfm $UNIMAP"
- fi
- if [ -n "$SYSFONTACM" ]; then
- ARGS="$ARGS --acm $SYSFONTACM"
- fi
- consolechars -f $ARGS
- fi
-elif [ -x /bin/setfont ]; then
+if [ -x /bin/setfont ]; then
if [ -n "$UNIMAP" ]; then
ARGS="-u $UNIMAP"
fi