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
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
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to