From owner-freebsd-questions@FreeBSD.ORG Thu Nov 20 05:41:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70EF2106564A for ; Thu, 20 Nov 2008 05:41:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id 59EEF8FC14 for ; Thu, 20 Nov 2008 05:41:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id hH9H1a00N0cQ2SLAAHh0s3; Thu, 20 Nov 2008 05:41:00 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA10.emeryville.ca.mail.comcast.net with comcast id hHh01a0022P6wsM8WHh0ow; Thu, 20 Nov 2008 05:41:00 +0000 X-Authority-Analysis: v=1.0 c=1 a=34bf34XqZAcA:10 a=QycZ5dHgAAAA:8 a=tsVs57-R0AV6HgTsNwwA:9 a=OeNTMO6w0qfg2wGNanYA:7 a=w0H9z9TkORH2N-05w6oYWvmCWN0A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id E20CC33C1C; Wed, 19 Nov 2008 21:40:59 -0800 (PST) Date: Wed, 19 Nov 2008 21:40:59 -0800 From: Jeremy Chadwick To: Lei Chen Message-ID: <20081120054059.GA17961@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: motd not compiled properly or ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2008 05:41:01 -0000 On Thu, Nov 20, 2008 at 01:57:54PM +1030, Lei Chen wrote: > I have compiled myself a RELENG_7 stable version of 7 branch. > > I did a fresh install on 7.1_prerelease, and cvsup -g -L 2 > stable-xxx-cvsup-file > make buildworld, everything goes as it should. > > reboot, mergemaster command shows on file "motd" > --7.1_PRERELEASE > ++7??:??:?? > rest of motd is the same > > now, based on the above showed result, I pressed "d" to keep original > version, because I don't want to have a system message shows 7:??:??:?? > > Now my question is, how do I just compile the "motd" in source tree, and > reinstall just that? Maybe recompile it may make it shows proper version > string. > Or if there's a method beside make buildworld again, it takes ages on my > laptop. Simply put: you don't have to do anything. FreeBSD's rc.d system updates the first line of the motd automatically; see /etc/rc.d/motd. I highly recommend placing the following into /etc/mergemaster.rc: # Do not compare template motd to /etc/motd IGNORE_MOTD=yes This will cause mergemaster to skip comparing motd, but WILL NOT affect the use of /etc/rc.d/motd. Hope this helps. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |