Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27698

Summary: patch for the the init script from bootsplash-0.6-r2 so that it supports different backgrounds for different TTY's
Product: Gentoo Linux Reporter: Nikolas Garofil <garo>
Component: New packagesAssignee: Troy Dack <troy>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: livewire
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for the bootsplash-0.6-r2 init script

Description Nikolas Garofil 2003-09-01 05:21:22 UTC
I made a patch for the init script from bootsplash-0.6-r2 so that it supports
different backgrounds for different TTY's. This patch will probably NOT work if
you also patched the init script with the patches from bug 27682 and 26996. 
To put (for example) the default background on TTY3 (this is the 4th screen),
put the following line in "/etc/conf.d/bootsplash":
BOOTSPLASH_THEME3=default

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




here is the patch:
--- /etc/init.d/bootsplash-OLD   2003-08-31 17:18:09.000000000 +0200
+++ /etc/init.d/bootsplash      2003-08-31 17:34:59.000000000 +0200
@@ -3,9 +3,29 @@
 # source our config
 source /etc/conf.d/bootsplash.conf

-if [ -z "${BOOTSPLASH_THEME}" ]
+if [ -z "${BOOTSPLASH_THEME0}" ]
 then
-    BOOTSPLASH_THEME=default
+    BOOTSPLASH_THEME0=default
+fi
+if [ -z "${BOOTSPLASH_THEME1}" ]
+then
+    BOOTSPLASH_THEME1=default
+fi
+if [ -z "${BOOTSPLASH_THEME2}" ]
+then
+    BOOTSPLASH_THEME2=default
+fi
+if [ -z "${BOOTSPLASH_THEME3}" ]
+then
+    BOOTSPLASH_THEME3=default
+fi
+if [ -z "${BOOTSPLASH_THEME4}" ]
+then
+    BOOTSPLASH_THEME4=default
+fi
+if [ -z "${BOOTSPLASH_THEME5}" ]
+then
+    BOOTSPLASH_THEME5=default
 fi

 depend() {
@@ -29,10 +49,12 @@
                RESOLUTION=$(/sbin/fbresolution)

                # switch to a usable image on all consoles
-               for TTY in `seq 0 5`
-               do
-                       /sbin/splash -s -u $TTY
/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${RESOLUTION}.cfg
-               done
+               /sbin/splash -s -u 0
/etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-${RESOLUTION}.cfg
+               /sbin/splash -s -u 1
/etc/bootsplash/${BOOTSPLASH_THEME1}/config/bootsplash-${RESOLUTION}.cfg
+               /sbin/splash -s -u 2
/etc/bootsplash/${BOOTSPLASH_THEME2}/config/bootsplash-${RESOLUTION}.cfg
+               /sbin/splash -s -u 3
/etc/bootsplash/${BOOTSPLASH_THEME3}/config/bootsplash-${RESOLUTION}.cfg
+               /sbin/splash -s -u 4
/etc/bootsplash/${BOOTSPLASH_THEME4}/config/bootsplash-${RESOLUTION}.cfg
+               /sbin/splash -s -u 5
/etc/bootsplash/${BOOTSPLASH_THEME5}/config/bootsplash-${RESOLUTION}.cfg

                eend $? "Failed to set frame buffer console images"
        fi
@@ -51,10 +73,10 @@
                ebegin "Setting Console frame buffer images"

                # source bootsplash config
-               source
/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
+               source
/etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-$(/sbin/fbresolution).cfg

                # Put bootsplash image up
-               /sbin/splash -s -u 0
/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-$(/sbin/fbresolution).cfg
+               /sbin/splash -s -u 0
/etc/bootsplash/${BOOTSPLASH_THEME0}/config/bootsplash-$(/sbin/fbresolution).cfg

                # ensure "silent" image is displayed
                echo "silent" > /proc/splash
Comment 1 Nikolas Garofil 2003-09-01 05:22:50 UTC
Created attachment 16898 [details, diff]
patch for the bootsplash-0.6-r2 init script
Comment 2 Nikolas Garofil 2003-09-01 05:28:50 UTC
!!! PLEASE DELETE THIS BUG !!!

I posted this bug in a wrong way, can someone delete it ?
The correct bug is http://bugs.gentoo.org/show_bug.cgi?id=27699
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-01 05:33:07 UTC
*** Bug 27699 has been marked as a duplicate of this bug. ***
Comment 4 Charles Goodwin 2003-12-13 15:53:15 UTC
Marking as a dup of Bug 27699, as requested

*** This bug has been marked as a duplicate of 27699 ***