diff options
author | Bill Nottingham <notting@redhat.com> | 2002-11-12 05:33:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-11-12 05:33:57 +0000 |
commit | c61206f36dbacebde8ea8e11bf3a4c665f04ce46 (patch) | |
tree | 46a7f0c8257d6d258665d8547a67278bcc4f5f69 /setsysfont | |
parent | 20ae4196e1aae687e7adeb95f59f38cd7de85bf6 (diff) | |
download | initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.gz initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.bz2 initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.tar.xz initscripts-c61206f36dbacebde8ea8e11bf3a4c665f04ce46.zip |
fix SYSFONTACM handling (#76472)
Diffstat (limited to 'setsysfont')
-rwxr-xr-x | setsysfont | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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" |