Date: Fri, 26 Apr 2013 04:38:51 +0200 From: Polytropon <freebsd@edvax.de> To: Daniel Feenberg <feenberg@nber.org> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD-update? Message-ID: <20130426043851.f7727bce.freebsd@edvax.de> In-Reply-To: <alpine.LRH.2.03.1304251111390.8084@nber.org> References: <kl8vjf$nll$1@ger.gmane.org> <20130424203430.e127c9a56fe88f968eed6ad5@sohara.org> <op.wv19hfhe34t2sn@tech304.office.supranet.net> <20130424213110.c277bd304c00ab64bcac2225@sohara.org> <5178602F.9010805@herveybayaustralia.com.au> <20130425063941.126a748686691ce998aa8a07@sohara.org> <Pine.GSO.4.64.1304250735580.13789@nber6> <20130425160703.d60d328e.freebsd@edvax.de> <alpine.LRH.2.03.1304251111390.8084@nber.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<TEXT> :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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130426043851.f7727bce.freebsd>