mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
sysvinit: Fix divide by zero upon shutdown
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1404 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -20,7 +20,12 @@ export VERBOSE
|
||||
|
||||
startup_progress() {
|
||||
step=$(($step + $step_change))
|
||||
progress=$(($step * $progress_size / $num_steps + $first_step))
|
||||
denominator=$(($num_steps + $first_step))
|
||||
if [ "$denominator" != "0" ]; then
|
||||
progress=$(($step * $progress_size / $denominator))
|
||||
else
|
||||
progress=$progress_size
|
||||
fi
|
||||
if type psplash-write >/dev/null 2>&1; then
|
||||
TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL"
|
||||
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
|
||||
PR = "r26"
|
||||
PR = "r27"
|
||||
|
||||
# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
|
||||
# Set PACKAGE_ARCH appropriately.
|
||||
|
||||
Reference in New Issue
Block a user