aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-11-12 05:33:57 +0000
committerBill Nottingham <notting@redhat.com>2002-11-12 05:33:57 +0000
commitc61206f36dbacebde8ea8e11bf3a4c665f04ce46 (patch)
tree46a7f0c8257d6d258665d8547a67278bcc4f5f69
parent20ae4196e1aae687e7adeb95f59f38cd7de85bf6 (diff)
downloadinitscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar
initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.gz
initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.bz2
initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.xz
initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.zip
fix SYSFONTACM handling (#76472)
-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"