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:
Mark D. Studebaker committed 2005-01-29 23:04:25 +00:00
1 parent bc24cf15d2
commit 78f5390e51
1 file changed
+2 -2
+2 -2
View File
@@ -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