Subject: Re: which file contains welcome/logon message?
To: None <wulf@ping.net.au>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-help
Date: 05/15/2003 06:39:29
--24zk1gE8NUlDmwG9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Thu, May 15, 2003 at 01:43:32PM +0930, wulf@ping.net.au wrote:
> You may want to read the man page on motd.

motd(5) is displayed by login(1) which doesn't run at that time yet.

such a file must be read by getty(8) but i don't see any obvious way of
doing it.  that you see now is apparently printed by getty(8) itself.

looking into sources and gettytab(5) manual page, "if" capability is
what you want:

   if      str          NULL     display named file before prompt,
                                 like /etc/issue

chainging the default entry in /etc/gettytab to:

  default:\
          :ce:ck:np:im=3D\r\n%s/%m (%h) (%t)\r\n\r\n:if=3D/etc/issue:

and populating your /etc/issue file will print it's content to the
terminals.

you might also want to remove the "im" part of the string, which is
responsible for the default behaviour:

   im      str          NULL     initial (banner) message

HTH,


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--24zk1gE8NUlDmwG9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD8DBQE+wxoBiwjDDlS8cmMRAn63AJ46oJM7B2jgWX/6JMLJemmC+7q+4QCfYuoN
h9c+XWr3/DbvkMQ2Yk3d6tw=
=5obk
-----END PGP SIGNATURE-----

--24zk1gE8NUlDmwG9--