From owner-freebsd-questions Fri May 31 16:15:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA20541 for questions-outgoing; Fri, 31 May 1996 16:15:11 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA20513 for ; Fri, 31 May 1996 16:14:56 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id aa10556; 31 May 96 23:14 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa13176; 1 Jun 96 0:14 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.7.5/8.6.12) id UAA20220; Fri, 31 May 1996 20:56:15 GMT Date: Fri, 31 May 1996 20:56:15 GMT Message-Id: <199605312056.UAA20220@jraynard.demon.co.uk> From: James Raynard To: valtech@caribnet.net CC: questions@freebsd.org In-reply-to: (message from Sean Batson on Thu, 30 May 1996 22:42:55 -0400 (AST)) Subject: Re: motd Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> Sean Batson 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