diff --git a/prog/detect/Module.mk b/prog/detect/Module.mk index f465e90b..774ea2ef 100644 --- a/prog/detect/Module.mk +++ b/prog/detect/Module.mk @@ -21,6 +21,9 @@ MODULE_DIR := prog/detect PROGDETECTDIR := $(MODULE_DIR) +PROGDETECTMAN8DIR := $(MANDIR)/man8 +PROGDETECTMAN8FILES := $(MODULE_DIR)/i2cdetect.8 $(MODULE_DIR)/sensors-detect.8 + # Regrettably, even 'simply expanded variables' will not put their currently # defined value verbatim into the command-list of rules... PROGDETECTTARGETS := $(MODULE_DIR)/i2cdetect @@ -39,8 +42,9 @@ $(MODULE_DIR)/i2cdetect: $(MODULE_DIR)/i2cdetect.ro prog/dump/i2cbusses.ro $(CC) $(EXLDFLAGS) -o $@ $^ install-prog-detect: all-prog-detect - $(MKDIR) $(DESTDIR)$(SBINDIR) + $(MKDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(PROGDETECTMAN8DIR) $(INSTALL) -m 755 $(PROGDETECTSBININSTALL) $(DESTDIR)$(SBINDIR) + $(INSTALL) -m 644 $(PROGDETECTMAN8FILES) $(DESTDIR)$(PROGDETECTMAN8DIR) user_install :: install-prog-detect clean-prog-detect: diff --git a/prog/detect/i2cdetect.8 b/prog/detect/i2cdetect.8 new file mode 100644 index 00000000..af780fcb --- /dev/null +++ b/prog/detect/i2cdetect.8 @@ -0,0 +1,39 @@ +.TH I2CDETECT 8 "March 2004" +.SH NAME +i2cdetect \- detect I\u2\dC chips + +.SH SYNOPSIS +.B i2cdetect +.RI [ -f ] +.I i2cbus +.br +.B i2cdetect +.I -l + +.SH DESCRIPTION +i2cdetect is a userspace program to scan an I\u2\dC bus for devices. It +outputs a table with the list of detected devices on the specified bus. +\fIi2cbus\fR indicates the number of the I\u2\dC bus to be scanned, and +should correspond to one of the busses listed by \fIi2cdetect -l\fR. + +.SH WARNING +This program can confuse your I\u2\dC bus, cause data loss and worse! + +.SH OPTIONS +.TP +.B "\-f" +Force scanning of non-regular addresses. Not recommended. +.TP +.B "\-l" +Output a list of installed busses. + +.SH CONFORMING TO +lm_sensors-2.x + +.SH SEE ALSO +i2cdump(8), sensors-detect(8) + +.SH AUTHOR +This manual page was written by Aurelien Jarno , for +the Debian GNU/Linux system. It was then reviewed by the lm_sensors team and +is now part of the lm_sensors source distribution. diff --git a/prog/detect/sensors-detect.8 b/prog/detect/sensors-detect.8 new file mode 100644 index 00000000..c2f55b3b --- /dev/null +++ b/prog/detect/sensors-detect.8 @@ -0,0 +1,23 @@ +.TH SENSORS-DETECT 8 "March 2004" +.SH NAME +sensors-detect \- detect hardware monitoring chips + +.SH SYNOPSIS +.B sensors-detect + +.SH DESCRIPTION +sensors-detect is an interactive program that will walk you through the +process of scanning your system for various hardware monitoring chips, +or sensors, supported by libsensors(3), or more generally by the lm_sensors +tool suite. + +.SH CONFORMING TO +lm_sensors-2.x + +.SH SEE ALSO +sensors(1), libsensors(3), i2cdetect(8) + +.SH AUTHOR +This manual page was written by Joey Hess , for +the Debian GNU/Linux system. It was then reviewed by the lm_sensors team and +is now part of the lm_sensors source distribution.