]> git.openpandora.org Git - openembedded.git/commitdiff
sysvinit: only ping splash when splashfuncs are present
authorKoen Kooi <koen@openembedded.org>
Fri, 17 Apr 2009 16:48:25 +0000 (18:48 +0200)
committerKoen Kooi <koen@openembedded.org>
Fri, 17 Apr 2009 16:48:25 +0000 (18:48 +0200)
recipes/sysvinit/sysvinit/angstrom/rc
recipes/sysvinit/sysvinit_2.86.bb

index 6c5f4ca2ecb985177692ae54de4f960f2d55f1b3..d1798ede39ccc4b75d9e74a4690c4081f4788168 100755 (executable)
 . /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
 }
 
 
index d3a151703f5df17680f3bb2c20a27bc5cbc6fb5e..e65391a6fd7afa7d7a65ac4fa8bb2b0572f5c2f5 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
 SECTION = "base"
 LICENSE = "GPL"
 HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r52"
+PR = "r53"
 
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.