Skip to content

Commit

Permalink
consolefont: change parameter order for compatibility with kbd >=2.7
Browse files Browse the repository at this point in the history
The newly released kbd 2.7 includes a rewrite of the setfont argument
parser, with this rewritten parser command-line option need to be passed
**before** the font. Otherwise, the parameters will be interpreted as
font names. Without this patch, this causes the consolefont service to
fail with the following error message:

	setfont: Unable to find file: -C

Note that the setfont(1) man page still recommends passing -C after the
font name. I am not sure if this is a documentation or implementation
issue.

See: legionus/kbd@aed486b
  • Loading branch information
nmeum committed Dec 15, 2024
1 parent d80792c commit db7ae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.d/consolefont.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ start()
[ -d /dev/vc ] && ttydev=/dev/vc/
x=1
while [ $x -le $ttyn ]; do
if ! setfont $consolefont $param -C $ttydev$x >/dev/null; then
if ! setfont $param -C $ttydev$x $consolefont >/dev/null; then
retval=1
break
fi
Expand Down

0 comments on commit db7ae81

Please sign in to comment.