mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
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:
1 parent
2003e65297
commit
cb64b74141
1 file changed
+7
-6
+7
-6
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user