From 51907c7368164906742027a13e4f292840a7475b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Aug 2009 16:49:35 +0100 Subject: If there is an error setting the font, abort instead of trying to set the font for subsequent consoles. --- init.d/consolefont.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.d/consolefont.in b/init.d/consolefont.in index ded9b4ea..5222814f 100644 --- a/init.d/consolefont.in +++ b/init.d/consolefont.in @@ -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 -- cgit v1.2.3