motd not compiled properly or ?

Jeremy Chadwick koitsu at
Wed Nov 19 21:41:01 PST 2008

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??:??:??
> 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

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 Networking              |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |

More information about the freebsd-questions mailing list