From owner-freebsd-questions@FreeBSD.ORG Fri Apr 26 02:38:50 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BC013C3D for ; Fri, 26 Apr 2013 02:38:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8422416D8 for ; Fri, 26 Apr 2013 02:38:50 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-233.dynamic.qsc.de [92.195.26.233]) by mx02.qsc.de (Postfix) with ESMTP id D857E2760D; Fri, 26 Apr 2013 04:38:42 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r3Q2cpar001933; Fri, 26 Apr 2013 04:38:51 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 26 Apr 2013 04:38:51 +0200 From: Polytropon To: Daniel Feenberg Subject: Re: FreeBSD-update? Message-Id: <20130426043851.f7727bce.freebsd@edvax.de> In-Reply-To: References: <20130424203430.e127c9a56fe88f968eed6ad5@sohara.org> <20130424213110.c277bd304c00ab64bcac2225@sohara.org> <5178602F.9010805@herveybayaustralia.com.au> <20130425063941.126a748686691ce998aa8a07@sohara.org> <20130425160703.d60d328e.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 02:38:50 -0000 On Thu, 25 Apr 2013 11:14:06 -0400 (EDT), Daniel Feenberg wrote: > This is written as though it applies to FreeBSD, but I was > under the impression that FreeBSD didn't do anything with > /etc/issue. It actually works quite well, I'm using it for decades. :-) You just need to add the item "if=/etc/issue" to your default setting (or whichever you use) in /etc/gettytab. > There isn't any man page for it, and when I > created a file /etc/issue it wasn't presented at login. See "man gettytab": if str unused display named file before prompt, like /etc/issue This is not part of the default configuration. > Is > there something else I need to do? I am using 9.1 Just change your /etc/gettytab to something like this: default:\ :cb:ce:ck:lc:fd#1000:im= :sp#1200:\ :if=/etc/issue: The system's default setting is like this: default:\ :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ There is no issue file defined. The im= setting contains (additional) text presented directly before the text "login:" appears. It could be the hostname or any other identification. In this file, as well as in /etc/issue, you can use the following placeholders: OS name: %s FreeBSD architecture: %m i386 OS version: %r 8.3 hostname: %h foo.example.com terminal line: %t ttyv1 date: %d Fri Apr 26 04:37:00 CEST 2013 They are also listed in "man gettytab". Also know the "figlet" program (plus the figlet-fonts package) to design nice ASCII banners. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...