LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Bootsplash works only in verbose mode (https://www.linuxquestions.org/questions/debian-26/bootsplash-works-only-in-verbose-mode-248037/)

drawhla 10-27-2004 01:58 PM

Bootsplash works only in verbose mode
 
Hi
I recently compiled the kernel with bootsplash support, I downloaded all the available packages and everything seems to work fine, except that I cant use the silent mode with progressbar, I did a search and all I found was very confusing, I know I have to edit some rc files but I downloaded a script that is supossed to do that but didnt work the name was sysv-rc-bootsplash or something like that.
the simple question is, how do you guys get the progress bar working?

haimeltjnfg 10-27-2004 05:17 PM

post your /etc/init.d/rc and /etc/init.d/rcS files.

drawhla 10-27-2004 06:17 PM

ok, here they are

my /etc/init.d/rc

#! /bin/bash
#
# rc This file is responsible for starting/stopping
# services when the runlevel changes.
#
# Optimization feature:
# A startup script is _not_ run when the service was
# running in the previous runlevel and it wasn't stopped
# in the runlevel transition (most Debian services don't
# have K?? links in rc{1,2,3,4,5} )
#
# Author: Miquel van Smoorenburg <miquels@cistron.nl>
# Bruce Perens <Bruce@Pixar.com>
#
# Edited for bootsplash by Matthew A. Nicholson <debian@matt-land.com>, 2003
#
# Version: @(#)rc 2.78 07-Nov-1999 miquels@cistron.nl
#

# Un-comment the following for debugging.
# debug=echo


# source the bootsplash config file
test -f /etc/default/bootsplash && . /etc/default/bootsplash



#
# Update bootsplash stuff. (progress bar, animations...)
#
rc_splash() {
#test "$SPLASH" != "no" && test "$_rc_splash" -eq 1 && /sbin/splash "$1"
test "$SPLASH" != "no" && /sbin/splash.sh "$1"

# make sure we don't add unless we really made progress
if [ "$1" != "master" -a "$1" != "splash start" -a "$1" != "shutdown" ]
then
progress=$(( $progress + 1 ))
fi
}

#
# Start script or program.
#
startup() {
case "$1" in
*.sh)
$debug sh "$@"
;;
*)
$debug "$@"
;;
esac
}




# Ignore CTRL-C only in this shell, so we can interrupt subprocesses.
trap ":" INT QUIT TSTP

# Set onlcr to avoid staircase effect.
stty onlcr 0>&1

# Now find out what the current and what the previous runlevel are.

runlevel=$RUNLEVEL

# Get first argument. Set new runlevel to this argument.
[ "$1" != "" ] && runlevel=$1
if [ "$runlevel" = "" ]
then
echo "Usage: $0 <runlevel>" >&2
exit 1
fi
previous=$PREVLEVEL
[ "$previous" = "" ] && previous=N

export runlevel previous

#
# initialize boosplash progress bar variables
#
runrcS=/etc/rcS.d
runrc=/etc/rc$runlevel.d
prerc=/etc/rc$previous.d

SSC=($(echo $runrc/S*))
case "$SSC" in
*\*) sscripts=0 ;;
*) sscripts=${#SSC[*]} ;;
esac

if [ "$previous" != "N" ]; then
KSC=($(echo $runrc/K*))
case "$KSC" in
*\*)
kscripts=0
;;

*)
kscripts=${#KSC[*]}
;;
esac
fi

if [ "$previous" = "N" ]; then
SSC=($(echo $runrcS/S*))
case "$SSC" in
*\*)
sscripts=0
;;

*)
progress=${#SSC[*]}
sscripts=$((${#SSC[*]} + $sscripts))
;;
esac
else
progress=0
fi

export sscripts progress kscripts


#
# let bootsplash know if we are shutting down
#
if [ "$runlevel" = "0" -o "$runlevel" = "6" ]
then
rc_splash "splash start"
rc_splash "shutdown"
fi

# Is there an rc directory for this new runlevel?
if [ -d /etc/rc$runlevel.d ]
then
# First, run the KILL scripts.
if [ $previous != N ]
then
for i in /etc/rc$runlevel.d/K[0-9][0-9]*
do
# Check if the script is there.
[ ! -f $i ] && continue

# Stop the service.
startup $i stop
rc_splash "$i stop" # handle bootsplash stuff
done
fi
# Now run the START scripts for this runlevel.
for i in /etc/rc$runlevel.d/S*
do
[ ! -f $i ] && continue

if [ $previous != N ] && [ $previous != S ]
then
#
# Find start script in previous runlevel and
# stop script in this runlevel.
#
suffix=${i#/etc/rc$runlevel.d/S[0-9][0-9]}
stop=/etc/rc$runlevel.d/K[0-9][0-9]$suffix
previous_start=/etc/rc$previous.d/S[0-9][0-9]$suffix
#
# If there is a start script in the previous level
# and _no_ stop script in this level, we don't
# have to re-start the service.
#
[ -f $previous_start ] && [ ! -f $stop ] && continue
fi
case "$runlevel" in
0|6)
startup $i stop
rc_splash "$i stop" # handle bootsplash stuff
;;
*)
startup $i start
rc_splash "$i start" # handle bootsplash stuff
;;
esac
if [ "$runlevel" != "0" -a "$runlevel" != "6" ]
then
rc_splash "master"
fi
done
fi

rc_splash "master" # finish up bootsplash

# eof /etc/init.d/rc


and my /etc/init.d/rcS

#! /bin/bash
#
# rcS Call all S??* scripts in /etc/rcS.d in
# numerical/alphabetical order.
#
# Edited for bootsplash by Matthew A. Nicholson <debian@matt-land.com>, 2003
#
# Version: @(#)/etc/init.d/rcS 2.76 19-Apr-1999 miquels@cistron.nl
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
# See if system needs to be setup. This is ONLY meant to
# be used for the initial setup after a fresh installation!
#
if [ -x /sbin/unconfigured.sh ]
then
/sbin/unconfigured.sh
fi

#
# Source defaults.
#
. /etc/default/rcS
export VERBOSE

# source the bootsplash config file
test -f /etc/default/bootsplash && . /etc/default/bootsplash

#
# initialize boosplash progressbar variables
#
runrcS=/etc/rcS.d
runrc=/etc/rc2.d # assume we will boot into runlevel 2

SSC=($(echo $runrcS/S*))
case "$SSC" in
*\*) sscripts=0 ;;
*) sscripts=${#SSC[*]} ;;
esac

SSC=($(echo $runrc/S*))
case "$SSC" in
*\*) sscripts=0 ;;
*) sscripts=$((${#SSC[*]} + $sscripts)) ;;
esac

progress=0
kscripts=0

export sscripts kscropts progress

#
# Update bootsplash stuff. (progress bar, animations...)
#
rc_splash() {
#test "$SPLASH" != "no" && test "$_rc_splash" -eq 1 && /sbin/splash "$1"
test "$SPLASH" != "no" && /sbin/splash.sh "$1"

# make sure we don't add unless we really made progress
if [ "$1" != "master" -a "$1" != "splash start" -a "$1" != "shutdown" ]
then
progress=$(( $progress + 1 ))
fi
}


#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP

rc_splash "splash start" # let bootsplash know we are ready

#
# Call all parts in order.
#
for i in /etc/rcS.d/S??*
do
# Ignore dangling symlinks for now.
[ ! -f "$i" ] && continue

rc_splash "$i start" # update bootsplash progress bar

case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
rc_splash "master" # stop playing animations
done

#
# For compatibility, run the files in /etc/rc.boot too.
#
[ -d /etc/rc.boot ] && run-parts /etc/rc.boot

#
# Finish setup if needed. The comment above about
# /sbin/unconfigured.sh applies here as well!
#
if [ -x /sbin/setup.sh ]
then
/sbin/setup.sh
fi

rc_splash "master" # stop playing animations


Thanks!

haimeltjnfg 10-27-2004 07:28 PM

# ls -lr /usr/bin | grep splash

drawhla 10-27-2004 09:28 PM

nop, it didn't work
could I be missing some files?

haimeltjnfg 10-27-2004 10:50 PM

sorry, my bad.

#ls -lr /sbin/bootanim /sbin/splash.sh /sbin/includeprog /sbin/includeprog /usr/sbin/splash /sbin/fb*

make sure all the files listed are excutable.

drawhla 10-28-2004 07:49 PM

it didn't work either
i staring to forget about it, its not that important anyway

thanks

haimeltjnfg 10-28-2004 08:10 PM

well the problem is you haven't installed the userspace tools. i bet after you install it, it would work.

you can download the deb:
do this (as root):
#echo deb http://www.bootsplash.de/files/debian unstable main >> /etc/apt/sources.list
#apt-get update
#apt-get install bootsplash

it should work after that.


All times are GMT -5. The time now is 03:08 PM.