summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2014-06-08 17:50:07 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2014-06-08 17:50:07 +0000
commitdc45432cd4f03f948237c53e557e8a56c844f7ca (patch)
tree65553542f819e6c80a2e85faee72b236e6ddc304 /libexec
parent4c7f4e5ef3415b0183caaebe7b91bf164418864b (diff)
downloadFreeBSD-src-dc45432cd4f03f948237c53e557e8a56c844f7ca.zip
FreeBSD-src-dc45432cd4f03f948237c53e557e8a56c844f7ca.tar.gz
MFC r260913,266895:
Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the device is an active kernel console and "off" otherwise. This is designed to allow serial-booting x86 systems to provide a login prompt on the serial line by default without providing one on all systems by default. Set this flag on x86 systems for ttyu0. Comments and suggestions by: grehan, dteske, jilles
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/ttys.57
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/getty/ttys.5 b/libexec/getty/ttys.5
index 2ff0fc8..e555c4f 100644
--- a/libexec/getty/ttys.5
+++ b/libexec/getty/ttys.5
@@ -98,8 +98,11 @@ ttys as a group.
.Pp
As flag values, the strings ``on'' and ``off'' specify that
.Xr init 8
-should (should not) execute the command given in the second field,
-while ``secure'' (if ``on'' is also specified) allows users with a
+should (should not) execute the command given in the second field.
+``onifconsole'' will cause this line to be enabled if and only if it is
+an active kernel console device (it is equivalent to ``on'' in this
+case).
+The flag ``secure'' (if the console is enabled) allows users with a
uid of 0 to login on
this line.
The flag ``dialin'' indicates that a tty entry describes a dialin
OpenPOWER on IntegriCloud