--- rc.orig 2007-02-07 10:23:41.000000000 -0500 +++ rc 2007-02-07 10:49:18.000000000 -0500 @@ -12,6 +12,10 @@ # Authors: # Miquel van Smoorenburg # Bruce Perens +# +# Modified by support@linuxvillage.ca +# 2007-02-07 +# Added bootsplash hooks. PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH @@ -76,13 +80,35 @@ fi # startup_progress() { $@ + step=$(($step + $step_change)) + progress=$(($step * $progress_size / $num_steps + $first_step)) + if [ "$SPLASH" = true ] ; then - step=$(($step + $step_change)) - progress=$(($step * $progress_size / $num_steps + $first_step)) $debug usplash_write "PROGRESS $progress" || true fi + #bootsplash update (progress bar, animations...) + if [ "$SPLASH" = bootsplash ] ; then + /sbin/splash.sh "$action" + fi + #end bootsplash } +#--begin / bootsplash +# +# source the bootsplash config file +# +if [ -f /etc/default/bootsplash ] ; then + test -f /etc/default/bootsplash && . /etc/default/bootsplash + SPLASH=bootsplash +fi +# boosplash progress bar variables +# make environment variable available to splash.sh +# +export progress +# +#--end bootsplash + + # # Start script or program. # @@ -225,7 +251,7 @@ then ;; esac - if [ "$SPLASH" = true ] ; then + if [ "$SPLASH" = true -o "$SPLASH" = bootsplash ] ; then # Count the number of scripts we need to run (for usplash # progress bar) num_steps=0