Handle both pwm files naming scheme for 2.6 kernels (ticket

#1844).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2798 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-12-20 22:00:10 +00:00
1 parent 2003e65297
commit cb64b74141
1 file changed
+7 -6
+7 -6
View File
@@ -63,13 +63,14 @@ then
exit 1
fi
if [ "$SYSFS" = "1" ]
then
MATCH='*/fan[1-9]_pwm'
else
MATCH='*/pwm[1-9]'
fi
MATCH='*/pwm[1-9]'
PWM=`echo $MATCH`
if [ "$SYSFS" = "1" -a "$MATCH" = "$PWM" ]
then
# Deprecated naming scheme (used in kernels 2.6.5 to 2.6.9)
MATCH='*/fan[1-9]_pwm'
PWM=`echo $MATCH`
fi
if [ "$MATCH" = "$PWM" ]
then
echo $0: 'There are no pwm-capable sensor modules installed'