sysvinit: attempt to fix #1582
authorKoen Kooi <koen@openembedded.org>
Tue, 14 Nov 2006 12:58:44 +0000 (12:58 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 14 Nov 2006 12:58:44 +0000 (12:58 +0000)
packages/sysvinit/sysvinit/angstrom/rc
packages/sysvinit/sysvinit_2.86.bb

index fb49720..7716a52 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+
 #
 # rc           This file is responsible for starting/stopping
 #              services when the runlevel changes.
 . /etc/default/rcS
 export VERBOSE
 
-if [ $(($num_steps + $first_step)) -lt 1 ]; then
-        numsteps="10"                           
-        first_step="1"                          
-fi    
-
 startup_progress() {
     step=$(($step + $step_change))
+
+    if [ $(($num_steps + $first_step)) -lt 1 ]; then
+        numsteps="1"
+        first_step="0"
+    fi
+
     progress=$(($step * $progress_size / $num_steps + $first_step))
     if type psplash-write >/dev/null 2>&1; then
         TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true
index 5fa2160..aa7aa83 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
 SECTION = "base"
 LICENSE = "GPL"
 HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r30"
+PR = "r31"
 
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.