mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Use new sysfs file name conventions. Suggested by Rutger
Nijlunsing. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2510 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
5f48e8e6ad
commit
f032b85a9d
1 file changed
+9
-3
+9
-3
@@ -63,8 +63,14 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PWM=`echo */pwm[1-9]`
|
||||
if [ "*/pwm[1-9]" = "$PWM" ]
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
MATCH='*/fan[1-9]_pwm'
|
||||
else
|
||||
MATCH='*/pwm[1-9]'
|
||||
fi
|
||||
PWM=`echo $MATCH`
|
||||
if [ "$MATCH" = "$PWM" ]
|
||||
then
|
||||
echo $0: 'There are no pwm-capable sensor modules installed'
|
||||
exit 1
|
||||
@@ -72,7 +78,7 @@ fi
|
||||
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
MATCH='*/fan_input[1-9]'
|
||||
MATCH='*/fan[1-9]_input'
|
||||
else
|
||||
MATCH='*/fan[1-9]'
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user