Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 04:38:51 +0200
From:      Polytropon <>
To:        Daniel Feenberg <>
Subject:   Re: FreeBSD-update?
Message-ID:  <>
In-Reply-To: <>
References:  <kl8vjf$nll$> <> <> <> <> <> <Pine.GSO.4.64.1304250735580.13789@nber6> <> <>

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

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:

	:cb:ce:ck:lc:fd#1000:im=<TEXT> :sp#1200:\

The system's default setting is like this:

	: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
	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. :-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Want to link to this message? Use this URL: <>