Re: motd

Jeff T. Crowder (crowder@ieee.cas.uc.edu)
Fri, 7 Jul 1995 12:48:14 -0400 (EDT)



> > Hi,
> > This should be an easy one!.
> >
> > Does anybody know how to stop the kernel writing a new version of the 'motd' file
> > in the /etc directory. It's nice to be able to have a 'permanent' message of the day!.
> >
> > At the moment every time the computer is rebooted it re-writes this file. Other U*nx's
> > don't do this , why Linux??
> >
> > Thanks
> >
> > L.Hudson
> >
>

If you are using the Slackware distribution, in /etc/rc.d/rc.S comment out
the following lines:

# Setup the /etc/issue and /etc/motd to reflect the current kernel level:
# THESE WIPE ANY CHANGES YOU MAKE TO /ETC/ISSUE AND /ETC/MOTD WITH EACH
# BOOT. COMMENT THEM OUT IF YOU WANT TO MAKE CUSTOM VERSIONS.
echo > /etc/issue
echo Welcome to Linux `/bin/uname -a | /bin/cut -d\ -f3`. >> /etc/issue
echo >> /etc/issue
echo "`/bin/uname -a | /bin/cut -d\ -f1,3`. (POSIX)." > /etc/motd

-Jeff

**********************************************************
Jeff Crowder IEEE Student Chapter President '95-'96

B.S. EET, expected June '96
University of Cincinnati, College of Applied Science
e-mail: crowder@ieee.cas.uc.edu
**********************************************************