aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetsysfont13
1 files 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"