Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27682 - bootsplash rc script update
Summary: bootsplash rc script update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 27699
Blocks:
  Show dependency tree
 
Reported: 2003-08-31 21:31 UTC by Aurelien Requiem
Modified: 2004-01-26 11:04 UTC (History)
5 users (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 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 :)