LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-27-2004, 02:58 PM   #1
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Rep: Reputation: 15
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?
 
Old 10-27-2004, 06:17 PM   #2
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
post your /etc/init.d/rc and /etc/init.d/rcS files.
 
Old 10-27-2004, 07:17 PM   #3
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Original Poster
Rep: Reputation: 15
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!
 
Old 10-27-2004, 08:28 PM   #4
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
# ls -lr /usr/bin | grep splash
 
Old 10-27-2004, 10:28 PM   #5
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Original Poster
Rep: Reputation: 15
nop, it didn't work
could I be missing some files?
 
Old 10-27-2004, 11:50 PM   #6
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
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.
 
Old 10-28-2004, 08:49 PM   #7
drawhla
Member
 
Registered: Sep 2003
Location: Buenos Aires, Argentina
Distribution: Debian Sarge
Posts: 72

Original Poster
Rep: Reputation: 15
it didn't work either
i staring to forget about it, its not that important anyway

thanks
 
Old 10-28-2004, 09:10 PM   #8
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dd verbose mode? sausagejohnson Linux - General 10 06-20-2017 06:15 AM
Verbose to Silent Mode Very Maqbool Linux - Software 2 07-16-2005 03:34 AM
Permanent verbose mode for startup Fnurr Mandriva 4 02-07-2005 04:15 AM
How Do I Set Start Up At Verbose Mode gram_vaz Mandriva 4 08-24-2004 04:42 PM
Creating a verbose/silent bootsplash jpg anzel Linux - General 2 06-17-2004 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration