Re: editing /etc/motd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
OOO    linux|java|majitek|gnu




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux