LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 10.0 + bootsplash + tty2-6 (https://www.linuxquestions.org/questions/slackware-14/slack-10-0-bootsplash-tty2-6-a-210152/)

lucas22 07-27-2004 05:26 AM

Slack 10.0 + bootsplash + tty2-6
 
Hi All,

Enyone know how to enable splash screen on consoles other than 1 (i.e. tty2 to 6)? In Slack 9.1 all what I had to do was to add the following lines at the end of rc.local:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/chosen_theme/config/bootsplash-WxH.cfg
done

But, it doesn't work in Slack 10. Any ideas?


Lucas

lucas22 07-28-2004 03:42 AM

No idea???

jong357 07-28-2004 12:47 PM

Code:

cat >> /etc/rc.d/rc.local << "EOF"

# Enables a background for different VC's
. /etc/rc.d/rc.splash
EOF

Code:

cat > /etc/rc.d/rc.splash << "EOF"

test -f /proc/splash || exit 5
test -x /sbin/splash || exit 5

sleep 5
echo "verbose" > /proc/splash
splashv=`cat /proc/splash`
res="${splashv##*, }"
test "$splashv" != "$res" || exit 5
res="${res%)*}"
echo "Setting up splash screens ($res)"

# CHANGE THESE TWO PATHS TO REFLECT YOUR OWN
splcfg=/etc/bootsplash/themes/current/config/bootsplash-$res.cfg
spljpg=/etc/bootsplash/themes/current/images/bootsplash-$res.jpg

# start_console : first fb console to display bootsplash
# console numeber is zero based!
# start_console = 1 Ctrl+Alt+F2
start_console=1
# end_console : last fb console to display bootsplash
# end_console = 5 Ctrl+Alt+F6
end_console=5

for ((unit=$start_console;unit<=$end_console;unit++)); do
  /sbin/splash -s -u "$unit" -n "$splcfg"
done
EOF

Copy/Paste both of those in their entirety, seperately, into a terminal...

If by some chance that doesn't work, delete "/etc/rc.d/rc.splash" and edit "/etc/rc.d/rc.local" and remove those two lines..

And I might as well mention... Make sure you don't already have a "/etc/rc.d/rc.splash" file before you use that second code..... That creates/overwrites any existing file that might have the same name in that same directory.

Let me know if that worked...

lucas22 07-30-2004 05:45 AM

I already have these two codes in my rc.local and rc.splash, respectively. It doesn't work correctly. It only set the splash screen on this console on which I use rc.local (or rs.splash) script. Beacause Linux starts from console 0 (tty1) the splash screen is already set on console 0, but not on the rest. If I use one of these scripts on e.g. console 3 (tty4), the splash will set on console 3 (and already on console 0), but not on the others. Strange...

jong357 07-30-2004 12:04 PM

How do you know if it will work or not if you don't try it... ;) You said you have:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/chosen_theme/config/bootsplash-WxH.cfg
done

in your rc.local... I don't get that anyway. To me, that looks like a very compressed version of rc.splash. I don't know. Guess I'm confused...

Looks like your bypassing running a seperate rc.splash by using that code in your rc.local. Your calling directly upon splash in your rc.local, ya know? Should work.....

I would try renaming your existing rc.splash (if you have one) and commenting out the stuff in your rc.local and then trying what I said above before you say it won't work... Just a thought. Good luck tho....

Also splash needs to point to the "current" directory... Maybe thats where you are going wrong. You need a symlink in /etc/bootsplash/themes, named 'current', that points to your theme folder name in the same directory... Make that symlink and change it to:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/current/config/bootsplash-WxH.cfg
done

I bet you it will work then..... You also don't have a splash jpg varibale set. Don't know if it needs to be set independently. It should be able to refrence your themes .cfg file for the picture.... Eh.... Your just compressing an awful lot of stuff there.... Makes me nervous..... I don't like short cuts... :)

Jon


All times are GMT -5. The time now is 12:39 PM.