diff options
author | Roy Marples <roy@uberserver.marples.name> | 2009-08-19 16:49:35 +0100 |
---|---|---|
committer | Roy Marples <roy@uberserver.marples.name> | 2009-08-19 16:49:35 +0100 |
commit | 51907c7368164906742027a13e4f292840a7475b (patch) | |
tree | 50d7fa66aec3a990d32a7d6cc24b58c6bd5338ce | |
parent | 8da7a49d024adf773ea677d65843fdc08a36c340 (diff) |
If there is an error setting the font, abort instead of trying to set
the font for subsequent consoles.
-rw-r--r-- | init.d/consolefont.in | 6 |
1 files 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 |