From c61206f36dbacebde8ea8e11bf3a4c665f04ce46 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 12 Nov 2002 05:33:57 +0000 Subject: fix SYSFONTACM handling (#76472) --- setsysfont | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/setsysfont b/setsysfont index 8790153a..a21bc373 100755 --- a/setsysfont +++ b/setsysfont @@ -24,12 +24,17 @@ if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then consolechars -f $ARGS fi elif [ -x /bin/setfont ]; then - if [ -n "$SYSFONT" -a -n "$UNIMAP" ]; then - /bin/setfont $SYSFONT -u $UNIMAP - elif [ -n "$SYSFONT" ]; then - /bin/setfont $SYSFONT + if [ -n "$UNIMAP" ]; then + ARGS="-u $UNIMAP" + fi + if [ -n "$SYSFONTACM" ]; then + ARGS="$ARGS -m $SYSFONTACM" + fi + if [ -n "$SYSFONT" ]; then + /bin/setfont $SYSFONT $ARGS # else # /bin/setfont + echo -ne "\033(K" > /dev/console fi else echo $"can't set font" -- cgit v1.2.1