Page MenuHomeFreeBSD

motd: Adapt with recent changes.

Authored by delphij on Tue, May 23, 4:36 AM.
Referenced Files
Unknown Object (File)
Tue, May 30, 1:48 PM
Unknown Object (File)
Mon, May 29, 5:57 AM
Unknown Object (File)
Sun, May 28, 7:33 PM
Unknown Object (File)
Sat, May 27, 3:48 PM
Unknown Object (File)
Fri, May 26, 3:25 PM
Unknown Object (File)
Fri, May 26, 9:54 AM
Unknown Object (File)
Wed, May 24, 6:11 AM
Unknown Object (File)
Tue, May 23, 4:38 AM



/etc/rc.d/motd: Update to accommodate changes in uname(1) and

The recent changes to the uname(1) command removed trailing spaces for
better POSIX conformance, but it broke the regular expression used by
the motd script which expected it. This commit addresses this by removing
the requirement, as it is no longer present.

Additionally, a recent change in introduced a new format for
uname -v, which omited the build number and build dates to improve
reproducible build support. This commit adds support for this new format.

Reported-by: Jamie Landeg-Jones <>

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

delphij created this revision.

Nice.. there was a freebsd-version phabricator or pull request that can use these REs instead of the badly broken ones there now.

This revision is now accepted and ready to land.Tue, May 23, 5:00 AM