]> git.openpandora.org Git - openembedded.git/commitdiff
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 fb4972045541b73e983fee3facd936aa874ea243..7716a5209957dab5491497e51a97108e3dd1b119 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 5fa21607e0d2939ed9b5add80240a50d20059c39..aa7aa833519ca0aa233dfe7854a86877c27c2e65 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.