From owner-freebsd-current@FreeBSD.ORG Wed May 28 00:41:25 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C39AF7A2 for ; Wed, 28 May 2014 00:41:25 +0000 (UTC) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ABD3F27A2 for ; Wed, 28 May 2014 00:41:25 +0000 (UTC) Received: from aurora.physics.berkeley.edu (aurora.Physics.Berkeley.EDU [128.32.117.67]) (authenticated bits=0) by d.mail.sonic.net (8.14.4/8.14.4) with ESMTP id s4S0fHaB011431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 27 May 2014 17:41:18 -0700 Message-ID: <538530AD.3030009@freebsd.org> Date: Tue, 27 May 2014 17:41:17 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: [Testing request] Enabling x86 serial login terminals Content-Type: multipart/mixed; boundary="------------000707040309020107000100" X-Sonic-ID: C;bhrjxwDm4xG5JzJ6eQW9yA== M;MKcMyADm4xG5JzJ6eQW9yA== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2014 00:41:25 -0000 This is a multi-part message in MIME format. --------------000707040309020107000100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000707040309020107000100 Content-Type: text/plain; charset=us-ascii; name="ttys.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ttys.diff" 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 --------------000707040309020107000100--