If there is an error setting the font, abort instead of trying to set

the font for subsequent consoles.
This commit is contained in:
Roy Marples 2009-08-19 16:49:35 +01:00
parent 8da7a49d02
commit 51907c7368
1 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,10 @@ start()
[ -d /dev/vc ] && ttydev=/dev/vc/ [ -d /dev/vc ] && ttydev=/dev/vc/
x=1 x=1
while [ $x -le $ttyn ]; do while [ $x -le $ttyn ]; do
setfont $consolefont $param -C $ttydev$x >/dev/null if ! setfont $consolefont $param -C $ttydev$x >/dev/null; then
retval=$(($retval + $?)) retval=1
break
fi
x=$(($x + 1)) x=$(($x + 1))
done done
eend $retval eend $retval