aboutsummaryrefslogtreecommitdiff
path: root/init.d.Linux/consolefont
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-09-25 15:55:47 +0000
committerMike Frysinger <vapier@gentoo.org>2007-09-25 15:55:47 +0000
commit17f430c0b911ef243599b0dc7388b166d5365539 (patch)
tree1cae2fb8ddd46c3387d0cf12acdc259d97159137 /init.d.Linux/consolefont
parent1e4e8ed27ae95096255283e92a75738bc7e296e5 (diff)
Skip consolefont setup when RC_TTY_NUMBER is set to 0.
Diffstat (limited to 'init.d.Linux/consolefont')
-rwxr-xr-xinit.d.Linux/consolefont6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.d.Linux/consolefont b/init.d.Linux/consolefont
index 01f4d039..d7c72bec 100755
--- a/init.d.Linux/consolefont
+++ b/init.d.Linux/consolefont
@@ -24,6 +24,12 @@ start() {
return 0
fi
+ if [ ${RC_TTY_NUMBER} -eq 0 ] ; then
+ ebegin "Skipping font setup (RC_TTY_NUMBER == 0); you should disable this init.d"
+ eend 0
+ return 0
+ fi
+
local x= param= sf_param= retval=1
# Get additional parameters