menu.lst

Nitebirdz nitebirdz at sacredchaos.com
Sat Dec 4 04:42:04 UTC 2004


On Fri, Dec 03, 2004 at 06:55:05PM -0800, Daniel Robitaille wrote:
> 
> motd is still there in /etc/motd. 
> The problem is that you only see it if you login to a Ubuntu machine
> via the console...
> 
> $ cat /etc/motd
> Linux home 2.6.8.1-3-686 #1 Thu Nov 18 12:19:06 UTC 2004 i686 GNU/Linux
> 
> 
> Which bring another question: which process modify that file?  My file
> is dated from the time of my last reboot. Obviously if I ever manually
> add anything in it, it will be clobbered at the next reboot.
> 

It appears to be '/etc/init.d/bootmisc.sh':

$ grep -i motd /etc/init.d/*
/etc/init.d/bootmisc.sh:EDITMOTD=yes
/etc/init.d/bootmisc.sh:#	Update /etc/motd. If it's a symbolic link, do the actual work
/etc/init.d/bootmisc.sh:if [ "$EDITMOTD" != no ]
/etc/init.d/bootmisc.sh:	MOTD="`readlink -f /etc/motd || :`"
/etc/init.d/bootmisc.sh:	if [ "$MOTD" != "" ]
/etc/init.d/bootmisc.sh:		uname -a > $MOTD.tmp
/etc/init.d/bootmisc.sh:		sed 1d $MOTD >> $MOTD.tmp
/etc/init.d/bootmisc.sh:		mv $MOTD.tmp $MOTD

----------------
Nitebirdz
http://www.sacredchaos.com/




More information about the ubuntu-users mailing list