mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
pwmconfig: Better diagnostics in pwmdisable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5023 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
778c45136c
commit
a95f194cef
2 files changed
+9
-2
No files matched your search
@@ -2,6 +2,7 @@ lm-sensors CHANGES file
|
||||
-----------------------
|
||||
|
||||
SVN HEAD
|
||||
pwmconfig: Better diagnostics in pwmdisable
|
||||
sensors-detect: Add Texas Instruments TMP401 detection
|
||||
Mention the f75375s driver
|
||||
Add SMSC LPC47B367-NC detection (no sensors)
|
||||
|
||||
+8
-2
@@ -132,15 +132,21 @@ function pwmdisable()
|
||||
|
||||
# It didn't work, try pwmN_enable=1 pwmN=255
|
||||
echo 1 > $ENABLE 2> /dev/null
|
||||
if [ "`cat $ENABLE`" -ne 1 ]
|
||||
then
|
||||
echo "$ENABLE stuck to `cat $ENABLE`" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo $MAX > $1
|
||||
if [ "`cat $ENABLE`" -eq 1 -a "`cat $1`" -ge 190 ]
|
||||
if [ "`cat $1`" -ge 190 ]
|
||||
then
|
||||
# Success
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Nothing worked
|
||||
echo "$ENABLE stuck to `cat $ENABLE`" >&2
|
||||
echo "$1 stuck to `cat $1`" >&2
|
||||
return 1
|
||||
else
|
||||
echo $MAX 0 > $1
|
||||
|
||||
Reference in new issue
Block a user