Lines 3-11
Link Here
|
3 |
# source our config |
3 |
# source our config |
4 |
source /etc/conf.d/bootsplash.conf |
4 |
source /etc/conf.d/bootsplash.conf |
5 |
|
5 |
|
6 |
if [ -z "${BOOTSPLASH_THEME}" ] |
6 |
if [ -z "${BOOTSPLASH_THEME0}" ] |
7 |
then |
7 |
then |
8 |
BOOTSPLASH_THEME=default |
8 |
BOOTSPLASH_THEME0=default |
|
|
9 |
fi |
10 |
if [ -z "${BOOTSPLASH_THEME1}" ] |
11 |
then |
12 |
BOOTSPLASH_THEME1=default |
13 |
fi |
14 |
if [ -z "${BOOTSPLASH_THEME2}" ] |
15 |
then |
16 |
BOOTSPLASH_THEME2=default |
17 |
fi |
18 |
if [ -z "${BOOTSPLASH_THEME3}" ] |
19 |
then |
20 |
BOOTSPLASH_THEME3=default |
21 |
fi |
22 |
if [ -z "${BOOTSPLASH_THEME4}" ] |
23 |
then |
24 |
BOOTSPLASH_THEME4=default |
25 |
fi |
26 |
if [ -z "${BOOTSPLASH_THEME5}" ] |
27 |
then |
28 |
BOOTSPLASH_THEME5=default |
9 |
fi |
29 |
fi |
10 |
|
30 |
|
11 |
depend() { |
31 |
depend() { |
Lines 29-38
Link Here
|
29 |
RESOLUTION=$(/sbin/fbresolution) |
49 |
RESOLUTION=$(/sbin/fbresolution) |
30 |
|
50 |
|
31 |
# switch to a usable image on all consoles |
51 |
# switch to a usable image on all consoles |
32 |
for TTY in `seq 0 5` |
52 |
/sbin/splash -s -u 0 /etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-${RESOLUTION}.cfg |
33 |
do |
53 |
/sbin/splash -s -u 1 /etc/bootsplash/${BOOTSPLASH_THEME1}/config/bootsplash-${RESOLUTION}.cfg |
34 |
/sbin/splash -s -u $TTY /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${RESOLUTION}.cfg |
54 |
/sbin/splash -s -u 2 /etc/bootsplash/${BOOTSPLASH_THEME2}/config/bootsplash-${RESOLUTION}.cfg |
35 |
done |
55 |
/sbin/splash -s -u 3 /etc/bootsplash/${BOOTSPLASH_THEME3}/config/bootsplash-${RESOLUTION}.cfg |
|
|
56 |
/sbin/splash -s -u 4 /etc/bootsplash/${BOOTSPLASH_THEME4}/config/bootsplash-${RESOLUTION}.cfg |
57 |
/sbin/splash -s -u 5 /etc/bootsplash/${BOOTSPLASH_THEME5}/config/bootsplash-${RESOLUTION}.cfg |
36 |
|
58 |
|
37 |
eend $? "Failed to set frame buffer console images" |
59 |
eend $? "Failed to set frame buffer console images" |
38 |
fi |
60 |
fi |
Lines 51-60
Link Here
|
51 |
ebegin "Setting Console frame buffer images" |
73 |
ebegin "Setting Console frame buffer images" |
52 |
|
74 |
|
53 |
# source bootsplash config |
75 |
# source bootsplash config |
54 |
source /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg |
76 |
source /etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-$(/sbin/fbresolution).cfg |
55 |
|
77 |
|
56 |
# Put bootsplash image up |
78 |
# Put bootsplash image up |
57 |
/sbin/splash -s -u 0 /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg |
79 |
/sbin/splash -s -u 0 /etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-$(/sbin/fbresolution).cfg |
58 |
|
80 |
|
59 |
# ensure "silent" image is displayed |
81 |
# ensure "silent" image is displayed |
60 |
echo "silent" > /proc/splash |
82 |
echo "silent" > /proc/splash |