Date: Wed, 19 Nov 2008 21:40:59 -0800 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Lei Chen <leadamc1@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: motd not compiled properly or ? Message-ID: <20081120054059.GA17961@icarus.home.lan> In-Reply-To: <a80d91270811191927h424125ffk55f39ef1927a392c@mail.gmail.com> References: <a80d91270811191927h424125ffk55f39ef1927a392c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081120054059.GA17961>