mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
New sensors.conf keyword 'ignore'
This often-asked for, long-planned and somewhat-forgotten feature makes it possible to tell libsensors-linked applications (like the sensors program) that certain features should not be displayed. This is very nice for things like unconnected temperature sensors or fans. Modifications to the library code, to the sensors program and to the documentation and example sensors.conf file. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@676 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
01bad38253
commit
8199abde46
10 files changed
+648
-376
No files matched your search
+18
-1
@@ -57,6 +57,9 @@ compute
|
||||
,
|
||||
.B EXPR
|
||||
.sp 0
|
||||
ignore
|
||||
.B NAME
|
||||
.sp 0
|
||||
set
|
||||
.B NAME EXPR
|
||||
.RE
|
||||
@@ -239,7 +242,7 @@ lm78\-*
|
||||
.sp 0
|
||||
*\-i2c\-10\-5e
|
||||
.sp 0
|
||||
*\-i2c\-10-\*
|
||||
*\-i2c\-10\-*
|
||||
.sp 0
|
||||
*\-i2c\-*\-5e
|
||||
.sp 0
|
||||
@@ -283,6 +286,20 @@ statement applies, a one\-on\-one translation is used instead.
|
||||
The comma is an unfortunate necessity to stop the statement from becoming
|
||||
ambiguous.
|
||||
|
||||
.SS IGNORE STATEMENT
|
||||
.RS
|
||||
ignore fan1
|
||||
.RE
|
||||
|
||||
The
|
||||
.I ignore
|
||||
statement is a hint that a specific feature should be ignored - probably
|
||||
because it returns bogus values (for example, because a fan or temperature
|
||||
sensor is not connected).
|
||||
|
||||
The only argument is the feature name, which may be a feature class;
|
||||
in that case the label class is used (see below).
|
||||
|
||||
.SS LABEL STATEMENT
|
||||
.RS
|
||||
label in3 "+5V"
|
||||
|
||||
Reference in new issue
Block a user