mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
fancontrol.pl: Fix pwmN_enable access (#2190).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4341 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
121fc83822
commit
11be56d092
2 files changed
+5
-4
No files matched your search
@@ -22,6 +22,7 @@ SVN HEAD
|
||||
Get rid of a useless semaphore (2.6 backport)
|
||||
Programs i2cdetect, i2cdump, isadump: Flush output in real time
|
||||
Program i2cdump: Cleaner output in SMBus block read mode
|
||||
Program fancontrol.pl: Fix pwmN_enable access (#2190)
|
||||
Program sensors: Add smsc47m2 support (fans)
|
||||
Fix -A option (hide adapter name) on error
|
||||
Program sensors-detect: Only probe relevant I2C addresses
|
||||
|
||||
@@ -234,7 +234,7 @@ sub pwmdisable($)
|
||||
else
|
||||
{ die("$dir/$p : $!"); }
|
||||
|
||||
my $enable = "$dir/$p/pwm/pwm_enable";
|
||||
my $enable = "$dir/${p}_enable";
|
||||
if (-f $enable)
|
||||
{
|
||||
if (open(F, ">$enable"))
|
||||
@@ -243,7 +243,7 @@ sub pwmdisable($)
|
||||
close(F);
|
||||
}
|
||||
else
|
||||
{ die("$dir/$p/pwm/pwm_enable : $!"); }
|
||||
{ die("$enable : $!"); }
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -267,7 +267,7 @@ sub pwmenable($)
|
||||
|
||||
if ($sysfs == 1)
|
||||
{
|
||||
my $enable = "$dir/$p/pwm/pwm_enable";
|
||||
my $enable = "$dir/${p}_enable";
|
||||
if (-f $enable)
|
||||
{
|
||||
if (open(F, ">$enable"))
|
||||
@@ -276,7 +276,7 @@ sub pwmenable($)
|
||||
close(F);
|
||||
}
|
||||
else
|
||||
{ die("$dir/$p : $!\n"); }
|
||||
{ die("$enable : $!\n"); }
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user