mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 13:28:01 +00:00
Delete grab_busses.sh, it's deprecated. Use sensors --bus-list instead.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4782 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
8f352d518c
commit
042532f7fb
1
CHANGES
1
CHANGES
@ -28,6 +28,7 @@ SVN HEAD
|
|||||||
Makefile: Drop the package and version targets
|
Makefile: Drop the package and version targets
|
||||||
Man pages: Drop "conforming to" sections
|
Man pages: Drop "conforming to" sections
|
||||||
Man page sensors.conf.5: Update the chip statement section
|
Man page sensors.conf.5: Update the chip statement section
|
||||||
|
Program config/grab_busses.sh: Delete, obsolete
|
||||||
Programs doc/*: Delete, obsolete
|
Programs doc/*: Delete, obsolete
|
||||||
Program etc/sensors-conf-convert: New
|
Program etc/sensors-conf-convert: New
|
||||||
Programs i2cdump, i2cget, i2cset: Do not force the slave address by default
|
Programs i2cdump, i2cget, i2cset: Do not force the slave address by default
|
||||||
|
@ -9,12 +9,6 @@ For more elaborate programs (for example, GUI sensor displays),
|
|||||||
see useful_addresses.html.
|
see useful_addresses.html.
|
||||||
|
|
||||||
|
|
||||||
* prog/config/grab_busses.sh (written in bash and awk, not installed)
|
|
||||||
This program helps you generate the `bus' statements for your configuration
|
|
||||||
file. It read /proc/bus/i2c (or the file specified on the command-line),
|
|
||||||
and prints to stdout `bus' statements reflecting the currently detected
|
|
||||||
adapters.
|
|
||||||
|
|
||||||
* prog/daemon/healthd.sh (written in bash, not installed)
|
* prog/daemon/healthd.sh (written in bash, not installed)
|
||||||
An example of a very simple hardware health monitoring daemon.
|
An example of a very simple hardware health monitoring daemon.
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" References consulted:
|
.\" References consulted:
|
||||||
.\" sensors.conf.eg by Frodo Looijaard
|
.\" sensors.conf.eg by Frodo Looijaard
|
||||||
.TH sensors.conf 5 "June 2007" "lm-sensors 3" "Linux Programmer's Manual"
|
.TH sensors.conf 5 "September 2007" "lm-sensors 3" "Linux User's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sensors.conf \- libsensors configuration file
|
sensors.conf \- libsensors configuration file
|
||||||
|
|
||||||
@ -141,11 +141,7 @@ always be quoted.
|
|||||||
|
|
||||||
The second argument is the adapter name, it must match exactly the
|
The second argument is the adapter name, it must match exactly the
|
||||||
adapter name as it appears in
|
adapter name as it appears in
|
||||||
.I /proc/bus/i2c
|
.IR /sys/class/i2c-adapter/i2c-*/name .
|
||||||
(2.4 kernel)
|
|
||||||
or
|
|
||||||
.I /sys/class/i2c-adapter/i2c-*/device/name
|
|
||||||
(2.6 kernel).
|
|
||||||
It should always be quoted as well as it will most certainly contain
|
It should always be quoted as well as it will most certainly contain
|
||||||
spaces or dashes.
|
spaces or dashes.
|
||||||
|
|
||||||
@ -158,9 +154,9 @@ all
|
|||||||
.I bus
|
.I bus
|
||||||
statements together at the top of your configuration file.
|
statements together at the top of your configuration file.
|
||||||
|
|
||||||
The program
|
Running
|
||||||
.I prog/config/grab_busses.sh
|
.B sensors --bus-list
|
||||||
in the source distribution can help you generate these lines.
|
will generate these lines for you.
|
||||||
|
|
||||||
.SS CHIP STATEMENT
|
.SS CHIP STATEMENT
|
||||||
|
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This simple shell script grabs the contents of /proc/bus/i2c and outputs it
|
|
||||||
# in sensors.conf format through stdout. You can use it to generate those
|
|
||||||
# nasty 'bus' statements in config files.
|
|
||||||
|
|
||||||
if [ $# = 0 ] ; then
|
|
||||||
file=/proc/bus/i2c
|
|
||||||
elif [ $# = 1 ] ; then
|
|
||||||
file="$1"
|
|
||||||
else
|
|
||||||
echo "Syntax: grab_busses [file]" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -e "$file" ]; then
|
|
||||||
echo "Can't find file \`$file';"\
|
|
||||||
"try \`modprobe i2c-proc' for /proc/bus/i2c" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat -- "$file" | awk \
|
|
||||||
' BEGIN { FS = "\t" }
|
|
||||||
{ sub(" *$","",$3)
|
|
||||||
sub(" *$","",$4)
|
|
||||||
printf "bus \"%s\" \"%s\" \"%s\"\n",$1,$3,$4 }
|
|
||||||
{ nrlines++ }
|
|
||||||
END { printf "Total lines: %d\n",nrlines > "/dev/stderr" }
|
|
||||||
'
|
|
Loading…
x
Reference in New Issue
Block a user