From ef264c830effc91add6da334204215f61eb8515e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 May 2013 09:25:06 +0200 Subject: agetty: allow full control on CLOCAL flag Now the -L option allows to explicitly enable CLOCAL flag. Unfortunately sometimes it's necessary to clear the flag. This patch add optional argument = to specify 'auto', 'always' and 'never' to control CLOCAL flag. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=816342 Signed-off-by: Karel Zak --- term-utils/agetty.8 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'term-utils/agetty.8') diff --git a/term-utils/agetty.8 b/term-utils/agetty.8 index 64a1dd289..8d5286c58 100644 --- a/term-utils/agetty.8 +++ b/term-utils/agetty.8 @@ -138,10 +138,20 @@ This allows the use of a non-standard login program (for example, one that asks for a dial-up password or that uses a different password file). .TP -\-L, \-\-local\-line -Force the line to be a local line with no need for carrier detect. This can +\-L, \-\-local\-line [=\fImode\fP] +Control CLOCAL line flag, the optional argument \fImode\fP is 'auto', 'always' or 'never'. +If the \fImode\fP argument is omitted then the default is 'always'. If the +\-\-local\-line option is ommitted at all then the default is 'auto'. + +The \fImode\fP 'always' forces the line to be a local line with no need for carrier detect. This can be useful when you have a locally attached terminal where the serial line does not set the carrier detect signal. + +The \fImode\fP 'never' explicitly clears CLOCAL flags from line setting and +the carrier detect signal is expected on the line. + +The \fImode\fP 'auto' (agetty default) does not modify CLOCAL setting +and follows the setting enabled by kernel. .TP \-m, \-\-extract\-baud Try to extract the baud rate the CONNECT status message -- cgit v1.2.3-55-g7522