mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 05:17:50 +00:00
allow readonly pwmx_enable files (lm85 kernel 2.6)
tickets 1874, 1879 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2883 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
bc24cf15d2
commit
78f5390e51
@ -97,7 +97,7 @@ function pwmdisable()
|
|||||||
then
|
then
|
||||||
echo $MAX > $1
|
echo $MAX > $1
|
||||||
ENABLE=${1}_enable
|
ENABLE=${1}_enable
|
||||||
if [ -f $ENABLE ]
|
if [ -w $ENABLE ]
|
||||||
then
|
then
|
||||||
echo 0 > $ENABLE
|
echo 0 > $ENABLE
|
||||||
fi
|
fi
|
||||||
@ -112,7 +112,7 @@ function pwmenable()
|
|||||||
if [ "$SYSFS" = "1" ]
|
if [ "$SYSFS" = "1" ]
|
||||||
then
|
then
|
||||||
ENABLE=${1}_enable
|
ENABLE=${1}_enable
|
||||||
if [ -f $ENABLE ]
|
if [ -w $ENABLE ]
|
||||||
then
|
then
|
||||||
echo 1 > $ENABLE
|
echo 1 > $ENABLE
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user