Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26996 - bootsplash init script does not use defined variable (from conf.d)
Summary: bootsplash init script does not use defined variable (from conf.d)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Troy Dack
URL:
Whiteboard:
Keywords:
: 27699 (view as bug list)
Depends on: 27699
Blocks:
  Show dependency tree
 
Reported: 2003-08-20 10:32 UTC by Tobias Sager
Modified: 2004-01-17 14:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Sager 2003-08-20 10:32:51 UTC
conf.d/bootsplash defines variable BOOTSPLASH_TTYS which is not used by init.d 
script.

Small patch to fix (assuming my understanding of BOOTSPLASH_TTYS is correct):

<snip>
--- bootsplash~ 2003-08-20 19:16:48.000000000 +0200
+++ bootsplash  2003-08-20 19:17:27.000000000 +0200
@@ -29,7 +29,7 @@
                RESOLUTION=$(/sbin/fbresolution)
 
                # switch to a usable image on all consoles
-               for TTY in `seq 0 5`
+               for TTY in "${BOOTSPLASH_TTYS}"
                do
                        /sbin/splash -s -u $TTY 
/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${RESOLUTION}.cfg
                done
</snip>



What I do not understand is the explanation of BOOTSPLASH_TTYS in config:
<snip>
# The number of ttys (seperated by space) which should 
# get the splash (e.g. for tty 1-5: "0 1 2 3 4 5")
#
# If you want to have different splash images on the ttys
# then you have to link the configuration file of that
# image to your theme's config directory as
# vtsplash-X-Y.cfg, where X is the tty number and Y the
# resolution.
# Assumed, your current theme is /etc/bootsplash/gentoo/ and
# you want to have the splash image from /etc/bootsplash/Linux
# on console 2 (at 800x600), then you have to link as follows:
#
# ln -s /etc/bootsplash/Linux/config/bootsplash-800x600.cfg \
# /etc/bootsplash/gentoo/config/vtsplash-1-800x600.cfg
#
BOOTSPLASH_TTYS="0 1 2 3 4 5"
</snip>

The thing about that symlink for different splashes on different consoles.
Is this done by splash-utility or should that be checked by the init-script 
(which is not checked at the moment afai see)?

Regards,
Tobias
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-19 03:17:06 UTC
*** Bug 27699 has been marked as a duplicate of this bug. ***
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2004-01-17 14:49:03 UTC
This is fixed in bootsplash-0.6-r4.