If there is an error setting the font, abort instead of trying to set
the font for subsequent consoles.
This commit is contained in:
parent
8da7a49d02
commit
51907c7368
@ -45,8 +45,10 @@ start()
|
||||
[ -d /dev/vc ] && ttydev=/dev/vc/
|
||||
x=1
|
||||
while [ $x -le $ttyn ]; do
|
||||
setfont $consolefont $param -C $ttydev$x >/dev/null
|
||||
retval=$(($retval + $?))
|
||||
if ! setfont $consolefont $param -C $ttydev$x >/dev/null; then
|
||||
retval=1
|
||||
break
|
||||
fi
|
||||
x=$(($x + 1))
|
||||
done
|
||||
eend $retval
|
||||
|
Loading…
Reference in New Issue
Block a user