summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/consolefont.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.d/consolefont.in b/init.d/consolefont.in
index ded9b4e..5222814 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