mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-28 21:07:55 +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
|
||||
echo $MAX > $1
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
if [ -w $ENABLE ]
|
||||
then
|
||||
echo 0 > $ENABLE
|
||||
fi
|
||||
@ -112,7 +112,7 @@ function pwmenable()
|
||||
if [ "$SYSFS" = "1" ]
|
||||
then
|
||||
ENABLE=${1}_enable
|
||||
if [ -f $ENABLE ]
|
||||
if [ -w $ENABLE ]
|
||||
then
|
||||
echo 1 > $ENABLE
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user