Changeset 5180
- Timestamp:
- 04/16/08 16:29:01 (5 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 4 modified
-
CHANGES (modified) (1 diff)
-
prog/init/fancontrol.init (modified) (1 diff)
-
prog/pwm/fancontrol (modified) (3 diffs)
-
prog/pwm/pwmconfig (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5179 r5180 10 10 Don't preserve configuration file customizations 11 11 Fix permissions of the configuration file 12 Don't start if fancontrol is running (#2299) 13 fancontrol: Don't start if already running (#2299) 14 Delete fancontrol.pid at exit time (#2299) 12 15 sensors-detect: Add SMSC SCH5027D detection 13 16 Do not access I/O ports on PPC -
lm-sensors/branches/lm-sensors-3.0.0/prog/init/fancontrol.init
r2607 r5180 35 35 killproc $FANCONTROL 36 36 RETVAL=$? 37 rm -f $PIDFILE38 37 rm -f /var/lock/subsys/fancontrol 39 38 echo -
lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/fancontrol
r5163 r5180 23 23 # 24 24 # Copyright 2003 Marius Reiner <marius.reiner@hdev.de> 25 # Copyright (C) 2007 Jean Delvare <khali@linux-fr.org>25 # Copyright (C) 2007-2008 Jean Delvare <khali@linux-fr.org> 26 26 # 27 27 # This program is free software; you can redistribute it and/or modify … … 42 42 # 43 43 44 PIDFILE="/var/run/fancontrol.pid" 45 44 46 #DEBUG=1 45 47 MAX=255 46 48 47 echo $$ > /var/run/fancontrol.pid 49 if [ -f "$PIDFILE" ] 50 then 51 echo "File $PIDFILE exists, is fancontrol already running?" 52 exit 1 53 fi 54 echo $$ > "$PIDFILE" 48 55 49 56 declare -i pwmval … … 249 256 done 250 257 echo 'Verify fans have returned to full speed' 258 rm -f "$PIDFILE" 251 259 exit $status 252 260 } -
lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig
r5179 r5180 28 28 # 29 29 # 30 31 PIDFILE="/var/run/fancontrol.pid" 32 33 if [ -f "$PIDFILE" ] 34 then 35 echo "File $PIDFILE exists. This typically means that the" 36 echo "fancontrol deamon is running. You should stop it before running pwmconfig." 37 echo "If you are certain that fancontrol is not running, then you can delete" 38 echo "$PIDFILE manually." 39 exit 1 40 fi 41 30 42 echo 'This program will search your sensors for pulse width modulation (pwm)' 31 43 echo 'controls, and test each one to see if it controls a fan on'
