Added manpage

This commit is contained in:
paul 1998-12-28 16:36:03 +00:00
parent a99a31b913
commit 45e22ff121
3 changed files with 77 additions and 6 deletions

View File

@ -2,22 +2,26 @@
#
# (c) 1995-97 Volker Götz
#
# $Id: Makefile,v 1.3 1998/09/26 18:28:06 akool Exp $
# $Id: Makefile,v 1.4 1998/12/28 16:36:03 paul Exp $
ifeq (../.config,$(wildcard ../.config))
#
# Automatic config with isdn4k-utils
#
include ../.config
MAN8PATH := $(CONFIG_MANDIR)/man8
MAN8DIR := $(CONFIG_MANDIR)/man8
else
#
# Manual config standalone
#
CONFIG_SBINDRIR := /sbin
MAN8PATH := /usr/man/man8
MAN8DIR := /usr/man/man8
endif
INSTALL=install
INSTALL_MAN=$(INSTALL) -o 0 -g 0 -m 0644
MANPAGE=imontty.8
CCFLAGS=-O2
#CCFLAGS=-I$(ISDN_INCLUDE) -g
@ -37,7 +41,18 @@ rootperm:
exit 1; \
fi
install: $(PROGS) rootperm
imontty.8: imontty.8.in
MANDATE=`grep CHECKIN $< | awk '{print $4}'`
sed \
-e "s#\@MANDATE\@#${MANDATE}#g" \
-e "s#\@I4LVERSION\@#${I4LVERSION}#g" \
< $< > $@
install-man: $(MANPAGE)
mkdir -p $(DESTDIR)$(MAN8DIR)
$(INSTALL_MAN) $< $(DESTDIR)$(MAN8DIR)/$(MANPAGE)
install: $(PROGS) rootperm install-man
install -s -o 0 -g 0 -m 0755 $(PROGS) $(DESTDIR)$(CONFIG_SBINDIR)
uninstall: rootperm
@ -47,6 +62,7 @@ clean:
rm -f *.o $(PROGS) *~
distclean: clean
rm -f $(MANPAGE)
#
# dummy for isdn4k-utils package

View File

@ -2,7 +2,7 @@
*
* (c) 1995-97 Volker Götz
*
* $Id: README,v 1.1 1997/03/03 04:10:11 fritz Exp $
* $Id: README,v 1.2 1998/12/28 16:36:04 paul Exp $
imontty 0.5
===========
@ -36,7 +36,7 @@ ISDN channel status:
Channel Usage Type Number
----------------------------------------------------------------------
line0 Out Net S7900734
line0 Out Net 07900734
line0 Off

55
imontty/imontty.8.in Normal file
View File

@ -0,0 +1,55 @@
.\" $Id: imontty.8.in,v 1.1 1998/12/28 16:36:04 paul Exp $
.\"
.\" CHECKIN $Date: 1998/12/28 16:36:04 $
.\"
.\" Process this file with
.\" groff -man -Tascii imontty.8 for ASCII output, or
.\" groff -man -Tps imontty.8 for PostScript output
.\"
.TH IMONTTY 8 "@MANDATE@" isdn4k-utils-@I4LVERSION@ "Linux System Administration"
.SH NAME
imontty \- display status of all ISDN lines
.SH SYNOPSIS
.BI imontty
.br
.SH DESCRIPTION
.I imontty
displays the status of all ISDN lines. No options are supported. Read access
to \fI/dev/isdninfo\fR is required.
The output is similar to this:
.nf
ISDN channel status:
Channel Usage Type Number
----------------------------------------------------------
line0 Out Net 0204229700
line0 Off
.fi
.I
Usage
is one of \fBOff\fR(line), \fBOut\fR(going), \fBIn\fR(coming) or
\fBExcl\fR(usive).
.I
Type
is one of \fBraw\fR (raw device), \fBModem\fR (modem/tty emulation),
\fBNet\fR (IP interface), \fBVoice\fR (voice call) or
\fBFax\fR (fax transmission).
.I
Number
is either the called party's number (outgoing) or the
calling party number (incoming).
.LP
.SH AUTHOR
Volker Götz volker@oops.franken.de
.br
manpage adapted from the README by Paul Slootman <paul@isdn4linux.de>
.LP
.SH SEE ALSO
.I imon\c
\&(8)