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:
Jean Delvare committed 2004-05-08 11:33:47 +00:00
1 parent 5f48e8e6ad
commit f032b85a9d
1 file changed
+9 -3
+9 -3
View File
@@ -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