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

Bug 27682

Summary: bootsplash rc script update
Product: Gentoo Linux Reporter: Aurelien Requiem <aurelien>
Component: New packagesAssignee: Michal Januszewski (RETIRED) <spock>
Status: RESOLVED FIXED    
Severity: enhancement CC: azarah, livewire, narada.sage, pYrania, troy
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 27699    
Bug Blocks:    

Description Aurelien Requiem 2003-08-31 21:31:40 UTC
Hello.

Here is a small enhancement for bootsplash.
This rc script allow one config file per tty.
This might be usefull ;-)

Here is the diff ;-)

--- bootsplash  2003-08-18 10:26:02.000000000 +0200
+++ /etc/init.d/bootsplash      2003-09-01 05:44:10.000000000 +0200
@@ -29,9 +29,21 @@
                RESOLUTION=$(/sbin/fbresolution)
 
                # switch to a usable image on all consoles
-               for TTY in `seq 0 5`
+               for TTY in `seq 0 11`
                do
-                       /sbin/splash -s -u $TTY /etc/bootsplash/
${BOOTSPLASH_THEME}/config/bootsplash-${RESOLUTION}.cfg
+                       TTYF=$(($TTY+1));
+                       if [ $TTYF -eq 7 ]
+                       then
+                               continue;
+                       fi
+
+                       if [ -f /etc/bootsplash/
${BOOTSPLASH_THEME}/config/bootsplash-tty${TTYF}-${RESOLUTION}.cfg ]
+                       then
+                               /sbin/splash -s -u $TTY /etc/bootsplash/
${BOOTSPLASH_THEME}/config/bootsplash-tty${TTYF}-${RESOLUTION}.cfg
+
+                       else
+                               /sbin/splash -s -u $TTY /etc/bootsplash/
${BOOTSPLASH_THEME}/config/bootsplash-${RESOLUTION}.cfg
+                       fi
                done
 
                eend $? "Failed to set frame buffer console images"
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2004-01-26 11:04:42 UTC
Bootplash 0.6-r5 has this functionality included (it's provided in a different way though). Thanks for the patch :)