FreeBSD-update?

Polytropon freebsd at edvax.de
Fri Apr 26 02:38:50 UTC 2013


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, ...


More information about the freebsd-questions mailing list