~ubuntu-branches/ubuntu/saucy/lm-sensors-3/saucy

« back to all changes in this revision

Viewing changes to debian/patches/10-pwmconfig.diff

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2011-02-06 14:46:28 UTC
  • mfrom: (1.1.4 upstream) (0.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20110206144628-14h2w8yva5p98vv9
Tags: 1:3.2.0-1
* New upstream version.
* Suggests fancontrol instead of recommending it in lm-sensors (closes:
  bug#567185).
* Suggests lm-sensors instead of recommending it in libsensors4 (closes:
  bug#602914).
* Suggests rrdtool in sensord (closes: bug#588132).
* Detect SMSC SCH5524-NS chip (closes: bug#588355).
* Bumped Standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
---
 
2
 prog/pwm/pwmconfig |    4 ++--
 
3
 1 file changed, 2 insertions(+), 2 deletions(-)
 
4
 
1
5
--- a/prog/pwm/pwmconfig
2
6
+++ b/prog/pwm/pwmconfig
3
 
@@ -461,8 +461,8 @@
4
 
                                fanactive="$j ${fanactive}"
5
 
                                fanactive_min="$S ${fanactive_min}"
 
7
@@ -471,8 +471,8 @@
 
8
                                        exit 1
 
9
                                fi
6
10
                        else
7
11
-                               fanactive="$j+${fanactive}" #not supported yet by fancontrol
8
12
-                               fanactive_min="$S+${fanactive_min}"
9
13
+                               fanactive="$(($j+${fanactive}))" #not supported yet by fancontrol
10
14
+                               fanactive_min="$(($S+${fanactive_min}))"
11
15
                        fi
12
 
                        sleep $DELAY
13
 
                        if [ $? -ne 0 ]
 
16
                        S=`cat $j`
 
17
                        if [ $S -lt $threshold ]