Most crossplatformy way to create the random fortune-motd file seems to be to use fuse to create the special file and just symlink it to /etc/motd. 66 lines of Python, and ta-daaa:
GitHub | https://github.com/theodric |
Codeberg | https://codeberg.org/theodric |