Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27698 - patch for the the init script from bootsplash-0.6-r2 so that it supports different backgrounds for different TTY's
Summary: patch for the the init script from bootsplash-0.6-r2 so that it supports diff...
Status: RESOLVED DUPLICATE of bug 27699
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Troy Dack
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 05:21 UTC by Nikolas Garofil
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
patch for the bootsplash-0.6-r2 init script (bootsplash.patch,2.16 KB, patch)
2003-09-01 05:22 UTC, Nikolas Garofil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***