*BSD News Article 69359


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews1.nwnet.net!netnews.nwnet.net!news.u.washington.edu!uw-beaver!uhog.mit.edu!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: issue file
Date: 24 May 1996 21:41:18 -0000
Organization: A FreeBSD Box
Lines: 36
Message-ID: <4o5adu$fm8@jraynard.demon.co.uk>
References: <4o4g7v$h71@news.engr.subr.edu> <4o4jmf$a5f@sidhe.hsc.fr>
NNTP-Posting-Host: localhost.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <4o4jmf$a5f@sidhe.hsc.fr>,
Ollivier Robert <roberto@keltia.freenix.fr> wrote:
> [courtesy cc of this posting sent to cited author via email]
>
>In article <4o4g7v$h71@news.engr.subr.edu>,
>James Benham <jbenham@scotmhs.engr.subr.edu> wrote:
>> What is the file that contains the login message before the login prompt?
>> In Linux it is "/etc/issue" but in FreeBSD I can't find it.
>
>Thre is no "issue" file on FreeBSD. This is configured in the /etc/gettytab
>file. I have patches to add the "/etc/issue" feature though.

Doesn't it come from /etc/rc.local?

T=/tmp/_motd
rm -f $T
uname -v | sed -e 's,^\([^#]*\) #\(.*199[0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T
echo "" >> $T
sed '1,/^$/d' < /etc/motd >> $T
cp $T /etc/motd
chmod 644 /etc/motd
rm -f $T

The rather frightening looking line just extracts the machine name
(actually the name of the kernel config file) and moves it after the
version number.

Anyway, if you want to change the "Welcome to FreeBSD!" bit, /etc/motd
is the place to do it. Make sure you maintain the format (version
details followed by a blank line followed by the message) though, or
you'll break the second 'sed' expression.

-- 
James Raynard, Edinburgh, Scotland
jraynard@dial.pipex.com
james@jraynard.demon.co.uk