Date: Fri, 31 May 1996 20:56:15 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: valtech@caribnet.net Cc: questions@freebsd.org Subject: Re: motd Message-ID: <199605312056.UAA20220@jraynard.demon.co.uk> In-Reply-To: <Pine.BSF.3.91.960530224109.860A-100000@fb10.caribnet.net> (message from Sean Batson on Thu, 30 May 1996 22:42:55 -0400 (AST))
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Sean Batson <valtech@caribnet.net> writes: > > How do I maintain my customized message minus the > FreeBSD 2.1.0-Release (KERNEL)#... message in this file > were in the source code can I disable it? The motd gets set in /etc/rc.local by this bit of code, based on what's set in /etc/motd:- T=/tmp/_motd rm -f $T uname -v | sed -e 's,^\([^#]*\) #\(.*199[0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T echo "" >> $T sed '1,/^$/d' < /etc/motd >> $T cp $T /etc/motd chmod 644 /etc/motd rm -f $T The easiest way of doing what you want is probably just to comment out the above code and then put whatever you want your motd to be in /etc/motd. Or you could be imaginative and vary the code to do something different - for example, if you want everyone to see how stable your machine is, you could replace the long uname line with something like echo "`uname -n` up and running since `date`" > $T -- James Raynard, Edinburgh, Scotland jraynard@dial.pipex.com james@jraynard.demon.co.uk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605312056.UAA20220>