aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/sysvinit/sysvinit
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-04-17 18:48:25 +0200
committerKoen Kooi <koen@openembedded.org>2009-04-17 18:48:25 +0200
commit54c2f02920fde00de5f9d260173b6bbe1de8426a (patch)
tree2762a8d3c9e7a2d38858c16bf1c1f07fcbdf6c86 /recipes/sysvinit/sysvinit
parent012465dda978446b0874a4c628d261b29f23b98c (diff)
downloadopenembedded-54c2f02920fde00de5f9d260173b6bbe1de8426a.tar.gz
openembedded-54c2f02920fde00de5f9d260173b6bbe1de8426a.tar.bz2
openembedded-54c2f02920fde00de5f9d260173b6bbe1de8426a.zip
sysvinit: only ping splash when splashfuncs are present
Diffstat (limited to 'recipes/sysvinit/sysvinit')
-rwxr-xr-xrecipes/sysvinit/sysvinit/angstrom/rc19
1 files changed, 11 insertions, 8 deletions
diff --git a/recipes/sysvinit/sysvinit/angstrom/rc b/recipes/sysvinit/sysvinit/angstrom/rc
index 6c5f4ca2ec..d1798ede39 100755
--- a/recipes/sysvinit/sysvinit/angstrom/rc
+++ b/recipes/sysvinit/sysvinit/angstrom/rc
@@ -18,18 +18,21 @@
. /etc/default/rcS
if [ -f /etc/default/splashfuncs ]; then
. /etc/default/splashfuncs
+ export SPLASH="1"
fi
export VERBOSE
startup_progress() {
- step=$(($step + $step_change))
- if [ "$num_steps" != "0" ]; then
- progress=$((($step * $progress_size / $num_steps) + $first_step))
- else
- progress=$progress_size
- fi
- #echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size"
- status_position $progress || true
+ if [ "$SPLASH" = "1" ] ; then
+ step=$(($step + $step_change))
+ if [ "$num_steps" != "0" ] ; then
+ progress=$((($step * $progress_size / $num_steps) + $first_step))
+ else
+ progress=$progress_size
+ fi
+ #echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size"
+ status_position $progress || true
+ fi
}