mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
Follow new sysfs naming scheme.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2514 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
7f22c17c1b
commit
12e4bc4853
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -119,7 +119,7 @@ function pwmdisable()
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
echo $MAX > $1
|
||||
ENABLE=${1/pwm/pwm_enable}
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
then
|
||||
echo 0 > $ENABLE
|
||||
@@ -134,7 +134,7 @@ function pwmenable()
|
||||
{
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
ENABLE=${1/pwm/pwm_enable}
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
then
|
||||
echo 1 > $ENABLE
|
||||
|
||||
+3
-3
@@ -95,7 +95,7 @@ function pwmdisable()
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
echo $MAX > $1
|
||||
ENABLE=${1/pwm/pwm_enable}
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
then
|
||||
echo 0 > $ENABLE
|
||||
@@ -110,7 +110,7 @@ function pwmenable()
|
||||
{
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
ENABLE=${1/pwm/pwm_enable}
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
then
|
||||
echo 1 > $ENABLE
|
||||
@@ -363,7 +363,7 @@ fi
|
||||
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
MATCH='*/temp_input[1-9]'
|
||||
MATCH='*/temp[1-9]_input'
|
||||
else
|
||||
MATCH='*/temp[1-9]'
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user