Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2018 13:18:38 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r333673 - in stable/11/etc: etc.aarch64 etc.amd64 etc.arm etc.i386 etc.powerpc etc.riscv etc.sparc64
Message-ID:  <201805161318.w4GDIcpx086341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed May 16 13:18:37 2018
New Revision: 333673
URL: https://svnweb.freebsd.org/changeset/base/333673

Log:
  MFC r333436: only launch getty if underlying device exists
  
  Note: pc98 isn't run under VM, so I didn't do a direct commit to it.
  
  Approved by: re@ (gjb@)

Modified:
  stable/11/etc/etc.aarch64/ttys
  stable/11/etc/etc.amd64/ttys
  stable/11/etc/etc.arm/ttys
  stable/11/etc/etc.i386/ttys
  stable/11/etc/etc.powerpc/ttys
  stable/11/etc/etc.riscv/ttys
  stable/11/etc/etc.sparc64/ttys
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/etc.aarch64/ttys
==============================================================================
--- stable/11/etc/etc.aarch64/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.aarch64/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,16 +29,16 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	onifconsole  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	off  secure
-#ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
+#ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	onifexists secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
 ttyu0	"/usr/libexec/getty 3wire"	vt100	onifconsole  secure

Modified: stable/11/etc/etc.amd64/ttys
==============================================================================
--- stable/11/etc/etc.amd64/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.amd64/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,15 +29,15 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
 ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.

Modified: stable/11/etc/etc.arm/ttys
==============================================================================
--- stable/11/etc/etc.arm/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.arm/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,15 +29,15 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	onifconsole  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	off  secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
 #ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.

Modified: stable/11/etc/etc.i386/ttys
==============================================================================
--- stable/11/etc/etc.i386/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.i386/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,15 +29,15 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
 ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.

Modified: stable/11/etc/etc.powerpc/ttys
==============================================================================
--- stable/11/etc/etc.powerpc/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.powerpc/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,15 +29,15 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
 #ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.

Modified: stable/11/etc/etc.riscv/ttys
==============================================================================
--- stable/11/etc/etc.riscv/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.riscv/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -29,16 +29,16 @@
 # when going to single-user mode.
 console	none				unknown	off secure
 #
-ttyv0	"/usr/libexec/getty Pc"		xterm	onifconsole  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	off  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	off  secure
-#ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
+#ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	onifexists secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
 ttyu0	"/usr/libexec/getty 3wire"	vt100	onifconsole  secure

Modified: stable/11/etc/etc.sparc64/ttys
==============================================================================
--- stable/11/etc/etc.sparc64/ttys	Wed May 16 11:19:03 2018	(r333672)
+++ stable/11/etc/etc.sparc64/ttys	Wed May 16 13:18:37 2018	(r333673)
@@ -33,15 +33,15 @@ screen	"/usr/libexec/getty Pc"		vt100	off secure
 ttya	"/usr/libexec/getty 3wire.9600"	vt100	off secure
 ttyb	"/usr/libexec/getty 3wire.9600"	vt100	off secure
 # syscons(4)
-ttyv0	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv0	"/usr/libexec/getty Pc"		xterm	onifexists secure
 # Virtual terminals
-ttyv1	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv2	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv3	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv4	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv5	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv6	"/usr/libexec/getty Pc"		xterm	on  secure
-ttyv7	"/usr/libexec/getty Pc"		xterm	on  secure
+ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv2	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv3	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv4	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv5	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv6	"/usr/libexec/getty Pc"		xterm	onifexists secure
+ttyv7	"/usr/libexec/getty Pc"		xterm	onifexists secure
 ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805161318.w4GDIcpx086341>