diff options
-rwxr-xr-x | meta/packages/sysvinit/sysvinit/rc | 7 | ||||
-rw-r--r-- | meta/packages/sysvinit/sysvinit_2.86.bb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/meta/packages/sysvinit/sysvinit/rc b/meta/packages/sysvinit/sysvinit/rc index cafd2301f1..2abc818eea 100755 --- a/meta/packages/sysvinit/sysvinit/rc +++ b/meta/packages/sysvinit/sysvinit/rc | |||
@@ -20,7 +20,12 @@ export VERBOSE | |||
20 | 20 | ||
21 | startup_progress() { | 21 | startup_progress() { |
22 | step=$(($step + $step_change)) | 22 | step=$(($step + $step_change)) |
23 | progress=$(($step * $progress_size / $num_steps + $first_step)) | 23 | denominator=$(($num_steps + $first_step)) |
24 | if [ "$denominator" != "0" ]; then | ||
25 | progress=$(($step * $progress_size / $denominator)) | ||
26 | else | ||
27 | progress=$progress_size | ||
28 | fi | ||
24 | if type psplash-write >/dev/null 2>&1; then | 29 | if type psplash-write >/dev/null 2>&1; then |
25 | TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true | 30 | TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true |
26 | fi | 31 | fi |
diff --git a/meta/packages/sysvinit/sysvinit_2.86.bb b/meta/packages/sysvinit/sysvinit_2.86.bb index 1cfd0b7019..97b611fe97 100644 --- a/meta/packages/sysvinit/sysvinit_2.86.bb +++ b/meta/packages/sysvinit/sysvinit_2.86.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init." | |||
2 | SECTION = "base" | 2 | SECTION = "base" |
3 | LICENSE = "GPL" | 3 | LICENSE = "GPL" |
4 | HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" | 4 | HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" |
5 | PR = "r26" | 5 | PR = "r27" |
6 | 6 | ||
7 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. | 7 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. |
8 | # Set PACKAGE_ARCH appropriately. | 8 | # Set PACKAGE_ARCH appropriately. |