From: Karel Zak Date: Mon, 3 Jun 2013 08:04:43 +0000 (+0200) Subject: agetty: update man page and usage() X-Git-Tag: v2.23.2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dda6bb8df3aacb1888972cce6085b032ee791c4;p=thirdparty%2Futil-linux.git agetty: update man page and usage() - baud_rate is optional - agetty has been rewritten 2 years ago, so don't blame original authors in the man page Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.8 b/term-utils/agetty.8 index 64a1dd2896..2126a7d52d 100644 --- a/term-utils/agetty.8 +++ b/term-utils/agetty.8 @@ -3,15 +3,10 @@ agetty \- alternative Linux getty .SH SYNOPSIS -.BR "agetty " [\-8chiLmnsUw] -.RI "[\-a " user ] -.RI "[\-f " issue_file ] -.RI "[\-H " login_host ] -.RI "[\-I " init ] -.RI "[\-l " login_program ] -.RI "[\-t " timeout ] +.B agetty +.RB [ options ] .I port -.I baud_rate,... +.RI [ baud_rate ...] .RI [ term ] .SH DESCRIPTION @@ -74,10 +69,16 @@ the list, which is treated as if it were circular. .sp Baud rates should be specified in descending order, so that the null character (Ctrl\-@) can also be used for baud rate switching. +.sp +This argument is optional and unnecessary for virtual terminals. +The default for serial terminals is '9600'. .TP term The value to be used for the TERM environment variable. This overrides whatever init(8) may have set, and is inherited by login and the shell. +.sp +The default is 'vt100', or 'linux' for Linux on virtual terminal, or 'hurd' +for GNU Hurd on virtual terminal. .SH OPTIONS .na .nf @@ -376,19 +377,19 @@ written to the console device or reported via the syslog(3) facility. Error messages are produced if the \fIport\fP argument does not specify a terminal device; if there is no utmp entry for the current process (System V only); and so on. -.SH AUTHOR(S) -.na -.nf -W.Z. Venema -Eindhoven University of Technology -Department of Mathematics and Computer Science -Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands - -Peter Orbaek -Linux port and more options. Still maintains the code. - -Eric Rasmussen -Added \-f option to display custom login messages on different terminals. +.SH AUTHORS +.UR werner@suse.de +Werner Fink +.UE +.br +.UR kzak@redhat.com +Karel Zak +.UE +.sp +The original +.B agetty +for serial terminals was written by W.Z. Venema +and ported to Linux by Peter Orbaek . .SH AVAILABILITY The agetty command is part of the util-linux package and is available from diff --git a/term-utils/agetty.c b/term-utils/agetty.c index a23cf6dc27..8a0a435df6 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1633,7 +1633,7 @@ static speed_t bcode(char *s) static void __attribute__ ((__noreturn__)) usage(FILE *out) { fputs(USAGE_HEADER, out); - fprintf(out, _(" %1$s [options] line baud_rate,... [termtype]\n" + fprintf(out, _(" %1$s [options] line [baud_rate,...] [termtype]\n" " %1$s [options] baud_rate,... line [termtype]\n"), program_invocation_short_name); fputs(USAGE_OPTIONS, out); fputs(_(" -8, --8bits assume 8-bit tty\n"), out);