[Testing request] Enabling x86 serial login terminals

Nathan Whitehorn nwhitehorn at freebsd.org
Wed May 28 00:41:25 UTC 2014


The attached patch enables login shells on ttyu0 if ttyu0 is a kernel 
console. It should preserve existing behavior (i.e. have no shell) 
otherwise. Testing would be appreciated. If no problem reports are 
received, I will commit this on Friday. Thanks!
-Nathan
-------------- next part --------------
Index: etc/etc.amd64/ttys
===================================================================
--- etc/etc.amd64/ttys	(revision 266749)
+++ etc/etc.amd64/ttys	(working copy)
@@ -41,7 +41,7 @@
 ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyu0	"/usr/libexec/getty std.9600"	dialup	off secure
+ttyu0	"/usr/libexec/getty std.9600"	dialup	onifconsole secure
 ttyu1	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyu2	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyu3	"/usr/libexec/getty std.9600"	dialup	off secure
Index: etc/etc.i386/ttys
===================================================================
--- etc/etc.i386/ttys	(revision 266749)
+++ etc/etc.i386/ttys	(working copy)
@@ -41,7 +41,7 @@
 ttyv8	"/usr/local/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyu0	"/usr/libexec/getty std.9600"	dialup	off secure
+ttyu0	"/usr/libexec/getty std.9600"	dialup	onifconsole secure
 ttyu1	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyu2	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyu3	"/usr/libexec/getty std.9600"	dialup	off secure


More information about the freebsd-current mailing list