From rick@kris.kiwi-computer.com  Thu Oct 26 20:27:54 2000
Return-Path: <rick@kris.kiwi-computer.com>
Received: from kris.kiwi-computer.com (adsl-151-203-126-84.bostma.adsl.bellatlantic.net [151.203.126.84])
	by hub.freebsd.org (Postfix) with ESMTP id 2E62F37B479
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Oct 2000 20:27:53 -0700 (PDT)
Received: (from root@localhost)
	by kris.kiwi-computer.com (8.9.3/8.9.3) id XAA26864;
	Thu, 26 Oct 2000 23:30:27 -0400 (EDT)
	(envelope-from rick)
Message-Id: <200010270330.XAA26864@kris.kiwi-computer.com>
Date: Thu, 26 Oct 2000 23:30:27 -0400 (EDT)
From: rick@kiwi-computer.com
Sender: rick@kris.kiwi-computer.com
Reply-To: rick@kiwi-computer.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: request to add default issue file to gettytab
X-Send-Pr-Version: 3.2

>Number:         22331
>Category:       misc
>Synopsis:       request to add if=/etc/issue to /etc/gettytab
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 26 20:30:01 PDT 2000
>Closed-Date:    Mon Dec 18 12:56:18 PST 2000
>Last-Modified:  Mon Dec 18 12:56:39 PST 2000
>Originator:     Rick C. Petty
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
KIWI Computer
>Environment:

	4.1-RELEASE

>Description:

It would be nice if the default terminal class entry in gettytab(5)
had the proper reference to /etc/issue, the file which is displayed
prior to the login prompt.  Many systems use "issue" and it would
save a little time every upgrade if the gettytab already had the
proper if= tag set (thus the system maintainer would just update
/etc/issue as necessary).

Note:  Adding this patch does not cause anything to break (tested on
both 4.1-RELEASE & 4.1.1-STABLE as of Oct 24 2000).  If /etc/issue
file does not exist, getty(8) just ignores the if= tag.

>How-To-Repeat:
>Fix:

Apply the following patch:

--- usr/src/etc/gettytab.orig	Thu Oct 26 22:52:26 2000
+++ usr/src/etc/gettytab	Thu Oct 26 22:52:40 2000
@@ -38,7 +38,8 @@
 #     np:ap:  same as np except istrip.
 #
 default:\
-	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
+	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\
+	:if=/etc/issue:
 
 #
 # Fixed speed entries

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Dec 18 12:56:18 PST 2000 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22331 
>Unformatted:
