[vuplus-wifi-util] fix default ccode
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-core / sysvinit / sysvinit / proc_progress.patch
1 --- a/rc        2012-03-06 01:33:16.778221585 +0100
2 +++ b/rc        2012-03-06 01:34:49.482223958 +0100
3 @@ -26,11 +26,8 @@
4          progress=$progress_size
5      fi
6      #echo "PROGRESS is $progress $runlevel $first_step + ($step of $num_steps) $step_change $progress_size"
7 -    #if type psplash-write >/dev/null 2>&1; then
8 -    #    TMPDIR=/mnt/.psplash psplash-write "PROGRESS $progress" || true
9 -    #fi
10 -    if [ -e /mnt/.psplash/psplash_fifo ]; then
11 -        echo "PROGRESS $progress" > /mnt/.psplash/psplash_fifo
12 +    if [ $progress -gt 0 -a -e /proc/progress ]; then
13 +        echo $(($progress / 2)) > /proc/progress
14      fi
15  }
16