-.TH CONSOLETYPE 1 "Red Hat Software" "RHS" \" -*- nroff -*-
+.TH CONSOLETYPE 1 "Red Hat, Inc" "RH" \" -*- nroff -*-
.SH NAME
-.B consoletype
+\fBconsoletype
\- print type of the console connected to standard input
.SH SYNOPSIS
-.B consoletype
+\fBconsoletype [\fIfg\fR]
.SH DESCRIPTION
-.B consoletype
-prints the type of console connected to standard input. It prints
-.I vt
+\fBconsoletype
+prints the type of console connected to standard input, and checks
+whether the console connected to standard input is the current
+foreground virtual console. With no arguments, it prints
+\fIvt\fR
if console is a virtual terminal (/dev/tty* or /dev/console device if not on
a serial console),
-.I serial
+\fIserial\fR
if standard input is a serial console (/dev/console or /dev/ttyS*) and
-.I pty
+\fIpty\fR
if standard input is a pseudo terminal.
.SH RETURN VALUE
-.B consoletype
-returns
+\fBconsoletype
+when passed no arguments returns
.TP
-.I 0
+\fI0
if on virtual terminal
.TP
-.I 1
+\fI1
if on serial console
.TP
-.I 2
+\fI2
if on a pseudo terminal.
+.TP
+When passed the \fIfg\fR argument, \fBconsoletype\fR returns
+.TP
+\fI0
+if the console connected to standard input is the current virtual
+terminal
+.TP
+\fI1
+otherwise.
\ No newline at end of file
stdout or stderr.
.TP
.I "\-e, \-\-event=[number]"
-Logs that the specified event happened. Usually used in conjuction
+Logs that the specified event happened. Used in conjuction
with \fB\-\-name\fR. Currently specified events are:
-.nf
- \fB1\fR the action completed successfully
- \fB2\fR the action failed
- \fB3\fR the action was cancelled at user request
- \fB4\fR the action failed due to the failure of a dependent action
+.PD 0
+.RS 8n
+.TP 3n
+.B 1
+the action completed successfully
+.TP
+.B 2
+the action failed
+.TP
+.B 3
+the action was cancelled at user request
+.TP
+.B 4
+the action failed due to the failure of a dependent action
+.RE
+.PD
.TP
.I "\-f, \-\-facility=[facility]"
-
Log at the specified syslog facility. The default
is \fBdaemon\fR (see syslog(3)).
.TP
-.TH IPCALC 1 "Red Hat Software" "RHS" \" -*- nroff -*-
+.TH IPCALC 1 "April 30 2001" "Red Hat, Inc." RH \" -*- nroff -*-
.SH NAME
ipcalc \- perform simple manipulation of IP addresses
.SH SYNOPSIS
.B ipcalc
-\fI[--hostname] [--broadcast] [--network] [--netmask] [--prefix] \fBip \fI[netmask]\fR
+[\fIOPTION\fR]... <\fBIP address\fR>[\fI/prefix\fR] [\fInetmask\fR]
.SH DESCRIPTION
\fBipcalc\fR provides a simple way to calculate IP information for a host.
The various options specify what information \fBipcalc\fR should display
-on standard out. Multiple options may be specified.
+on standard out. Multiple options may be specified. An IP address to
+operate on must always be specified. Most operations also require a
+netmask or a CIDR prefix as well.
.SH OPTIONS
.TP
-.IP \fI--broadcast\fR
+.TP
+\fB\-b\fR, \fB\-\-broadcast\fR
Display the broadcast address for the given IP address and netmask.
-.IP \fI--hostname\fR
+.TP
+\fB\-h\fR, \fB\-\-hostname\fR
Display the hostname for the given IP address.
-.IP \fI--netmask\fR
+.TP
+\fB\-m\fR, \fB\-\-netmask\fR
Calculate the netmask for the given IP address. It assumes that the IP
-address is in a complete Class A, B, or C network. Many networks do
+address is in a complete class A, B, or C network. Many networks do
not use the default netmasks, in which case an inappropriate value will
be returned.
-.IP \fI--prefix\fR
-That same as \fB--netmask\fR but return prefix (see CIDR specification)
+.TP
+\fB\-p\fR, \fB\-\-prefix\fR
+Show the prefix for the given mask/IP address.
-.IP \fI--network\fR
+.TP
+\fB\-n\fR, \fB\-\-network\fR
Display the network address for the given IP address and netmask.
-.SH AUTHOR
+.TP
+\fB\-s\fR, \fB\-\-silent\fR
+Don't ever display error messages.
+
+.SH AUTHORS
.nf
Erik Troan <ewt@redhat.com>
-Modifications: Arkadiusz Miskiewicz <misiek@pld-linux.org>
+.nf
+Preston Brown <pbrown@redhat.com>
.fi
+.SH "REPORTING BUGS"
+Report bugs to our bugtracking system:
+http://bugzilla.redhat.com/bugzilla.
+.SH COPYRIGHT
+Copyright \(co 1997-2001 Red Hat, Inc.
+.br
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.