diff options
author | Karel Zak | 2013-05-23 09:25:06 +0200 |
---|---|---|
committer | Karel Zak | 2013-05-23 09:47:58 +0200 |
commit | ef264c830effc91add6da334204215f61eb8515e (patch) | |
tree | 6f5794a6d47df339a623776a840022a73b23a000 /term-utils/agetty.8 | |
parent | tests: new warning fix (diff) | |
download | kernel-qcow2-util-linux-ef264c830effc91add6da334204215f61eb8515e.tar.gz kernel-qcow2-util-linux-ef264c830effc91add6da334204215f61eb8515e.tar.xz kernel-qcow2-util-linux-ef264c830effc91add6da334204215f61eb8515e.zip |
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 =<mode> 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 <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.8')
-rw-r--r-- | term-utils/agetty.8 | 14 |
1 files changed, 12 insertions, 2 deletions
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 |