editing /etc/motd

Ben Stringer ben at burbong.com
Sat Jan 24 07:13:46 UTC 2004


On Sat, 2004-01-24 at 15:33, Y. Makki wrote:
> Hello
> 
> 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
long as the info in motd is not likely to change between reboots.

eg.

echo "$(hostname), $(uname -r)" > /etc/motd

Otherwise the cron suggestion will do the job.

Cheers, Ben
-- 
.O.    Ben Stringer
..O    ben at burbong.com
OOO    linux|java|majitek|gnu





More information about the fedora-list mailing list