From 78f5390e51f9c9f27268d6237b787e447f9b51e2 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 29 Jan 2005 23:04:25 +0000 Subject: [PATCH] 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 --- prog/pwm/pwmconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index bf299be1..717c38b7 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -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