editing /etc/motd

Matthew Miller mattdm at mattdm.org
Sat Jan 24 18:23:10 UTC 2004


On Sat, Jan 24, 2004 at 06:13:46PM +1100, Ben Stringer wrote:
> > I'm trying to edit /etc/motd to include various things, say like kernel
> > version. Adding a line like `uname -r` doesn't work, it simply echoes
> > that instead of executing the command. Any way I can actually accomplish
> > this?
> I'd suggest adding some code to /etc/rc.local to write what you want. As

Or, go a different route: instead of editing motd, put a little script in
/etc/profile.d that prints what you want.

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>





More information about the fedora-list mailing list