Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 2020 20:17:49 +0530
From:      Rahul Bharadwaj <rahulbharadwajpromos@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Potential BUG: update_motd="YES" is prepending same text on ever reboot
Message-ID:  <CADotuvvsk8fViP0maTN6tKoL_x2C-7UZEMNn7Kj6GsUCrDXtKQ@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

My FreeBSD details are:
FreeBSD 11.3

I have the following option in my /etc/rc.conf:
*update_motd="YES"*

Every time I reboot, the output from the "uname" command is prepended to
the previous reboot in the /etc/motd file. So on 3 restarts, it prints like
this:

*$ ssh user@ip*

*FreeBSD user 11.3 ...*
*FreeBSD user 11.3 ...*
*FreeBSD user 11.3 ...*

*<my actual motd>*


Here's what I have tried already:
- Searched the mailing list for any mention of "motd" or "update_motd".
None match my issue.
- Searched the FreeBSD bugzilla for "motd", there are 2 bugs, none of which
match my issue.
- Read the man page for rc.conf and motd, they don't give any hints on bugs.

So I'm not sure if this is even a bug. Can someone please help out on this.

Thanks and Regards.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CADotuvvsk8fViP0maTN6tKoL_x2C-7UZEMNn7Kj6GsUCrDXtKQ>