From ef520b720d8060016e5a78b0224360b1e140d783 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Mon, 8 Feb 1999 20:13:56 +0000 Subject: [PATCH] Manual page for the sensors(1) command git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@206 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/sensors/Module.mk | 6 +++- prog/sensors/sensors.1 | 76 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 prog/sensors/sensors.1 diff --git a/prog/sensors/Module.mk b/prog/sensors/Module.mk index 90b311b3..fb316169 100644 --- a/prog/sensors/Module.mk +++ b/prog/sensors/Module.mk @@ -20,6 +20,9 @@ # verbatim in the rules, until it is redefined. MODULE_DIR := prog/sensors +PROGSENSORSMAN1DIR := $(MANDIR)/man1 +PROGSENSORSMAN1FILES := $(MODULE_DIR)/sensors.1 + # Regrettably, even 'simply expanded variables' will not put their currently # defined value verbatim into the command-list of rules... PROGSENSORSTARGETS := $(MODULE_DIR)/sensors @@ -36,8 +39,9 @@ all-prog-sensors: $(PROGSENSORSTARGETS) all :: all-prog-sensors install-prog-sensors: all-prog-sensors - mkdir -p $(BINDIR) + mkdir -p $(BINDIR) $(PROGSENSORSMAN1DIR) $(INSTALL) -o root -g root -m 755 $(PROGSENSORSTARGETS) $(BINDIR) + $(INSTALL) -o $(MANOWN) -g $(MANGRP) -m 644 $(PROGSENSORSMAN1FILES) $(PROGSENSORSMAN1DIR) install :: install-prog-sensors clean-prog-sensors: diff --git a/prog/sensors/sensors.1 b/prog/sensors/sensors.1 new file mode 100644 index 00000000..370a7b93 --- /dev/null +++ b/prog/sensors/sensors.1 @@ -0,0 +1,76 @@ +.\" Copyright 1999 Frodo Looijaard +.\" sensors is distributed under the GPL +.\" +.\" Permission is granted to make and distribute verbatim copies of this +.\" manual provided the copyright notice and this permission notice are +.\" preserved on all copies. +.\" +.\" Permission is granted to copy and distribute modified versions of this +.\" manual under the conditions for verbatim copying, provided that the +.\" entire resulting derived work is distributed under the terms of a +.\" permission notice identical to this one +.\" +.\" Since the Linux kernel and libraries are constantly changing, this +.\" manual page may be incorrect or out-of-date. The author(s) assume no +.\" responsibility for errors or omissions, or for damages resulting from +.\" the use of the information contained herein. The author(s) may not +.\" have taken the same level of care in the production of this manual, +.\" which is licensed free of charge, as they might when working +.\" professionally. +.\" +.\" Formatted or processed versions of this manual, if unaccompanied by +.\" the source, must acknowledge the copyright and authors of this work. +.\" +.TH sensors 1 "February 8, 1999" "" "Linux Programmer's Manual" +.SH NAME +sensors \- printing sensors information +.SH SYNOPSIS +.B sensors [ +.I options +.B ] [ +.I chips +.B ] + +.SH DESCRIPTION +.B sensors +is used to show the current readings of all sensor chips, and to set all limits +as specified in the configuration file. + +.B sensors +knows about certain chips, and outputs nicely formatted readings for them; but +it can also display the information of unknown chips, as long as +.I libsensors +knows about them. + +.SH OPTIONS +.IP "-c config-file" +Specify a configuration file. If no file is specified, the name `sensors.conf' +is used. If the name does not contain a directory slash, or this parameter +is not present, the following path is examined: +.BR /etc , +.BR /usr/lib/sensors , +.BR /usr/local/lib/sensors , +.BR /usr/lib , +.BR /usr/local/lib , +.B . +.IP -h +Prints a help text +.IP -s +Evaluates all `set' statements in the configuration file. You must probably +be `root' to do this. If this parameter is not specified, no `set' statement +is evaluated. +.IP -v +Returns the program version. +.SH FILES +.I /etc/sensors.conf +.RS +The system wide configuration file. See +.BR sensors.conf (5) +for further details. +,RE +.SH "CONFORMING TO" +lm_sensors-2.x +.SH SEE ALSO +sensors.conf(5) + +