mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-15 19:13:10 +00:00
Detect improperly formatted FCTEMPS value (#2293).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5106 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
8b6882e8d6
commit
17735732b0
2 files changed
+8
No files matched your search
@@ -17,6 +17,7 @@ SVN-HEAD
|
||||
Print the asset tag
|
||||
Fix the timestamp decoding
|
||||
Program i2cdump: Fix I2C block mode error code
|
||||
Program fancontrol: Detect improperly formatted FCTEMPS value (#2293)
|
||||
Program pwmconfig: Better diagnostics in pwmdisable
|
||||
Give the fans some time to spin up
|
||||
Really hide errors on sysfs writes
|
||||
|
||||
@@ -82,6 +82,13 @@ function LoadConfig {
|
||||
let fcvcount=0
|
||||
for fcv in $FCTEMPS
|
||||
do
|
||||
if ! echo $fcv | egrep -q '='
|
||||
then
|
||||
echo "Error in configuration file:"
|
||||
echo "FCTEMPS value is improperly formatted"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
AFCPWM[$fcvcount]=`echo $fcv |cut -d'=' -f1`
|
||||
AFCTEMP[$fcvcount]=`echo $fcv |cut -d'=' -f2`
|
||||
AFCFAN[$fcvcount]=`echo $FCFANS |sed -e 's/ /\n/g' |egrep "${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
|
||||
|
||||
Reference in new issue
Block a user