diff options
author | Koen Kooi <koen@openembedded.org> | 2006-11-11 10:14:18 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2006-11-11 10:14:18 +0000 |
commit | 4297c28b9890acf648653228ad4ac0337f19dcd6 (patch) | |
tree | ce0f8f58c3fed0867b7e7075ff0010519a273bac /packages | |
parent | 2498ea82a3a37cf46a8063bd712b9cda49645534 (diff) |
sysvinit: fix divide by zero at reboot for angstrom
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/sysvinit/sysvinit/angstrom/rc | 5 | ||||
-rw-r--r-- | packages/sysvinit/sysvinit_2.86.bb | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/sysvinit/sysvinit/angstrom/rc b/packages/sysvinit/sysvinit/angstrom/rc index a355ea05cc..fb49720455 100755 --- a/packages/sysvinit/sysvinit/angstrom/rc +++ b/packages/sysvinit/sysvinit/angstrom/rc @@ -18,6 +18,11 @@ . /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)) progress=$(($step * $progress_size / $num_steps + $first_step)) diff --git a/packages/sysvinit/sysvinit_2.86.bb b/packages/sysvinit/sysvinit_2.86.bb index d9cfaff2cb..5fa21607e0 100644 --- a/packages/sysvinit/sysvinit_2.86.bb +++ b/packages/sysvinit/sysvinit_2.86.bb @@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init." SECTION = "base" LICENSE = "GPL" HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" -PR = "r29" +PR = "r30" # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. # Set PACKAGE_ARCH appropriately. |