Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.02 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.02 KB

motdd

A small shell script to manage /etc/motd.

Usage

Install bin/update-motd somewhere on your $PATH.

Create /etc/update-motd.d/ and put the scripts to generate the MOTD in it. Ensure they are executable. If packaging this program, /usr/share/update-motd.d/ can be used as a fallback path for system defaults.

On systems with runit and snooze (like Void Linux), the service in runit/ can be used. Otherwise, a cronjob, systemd timer, or similar method for running update-motd periodically works.

See here for an example package template for motdd.

Examples

Two examples of scripts are provided:

Basic

A simple MOTD.

an example of the output of the basic example scripts

Fancy

A showy MOTD. Requires:

  • lolcat
  • figlet
  • curl
  • docker (optional)
  • xbps (optional)

an example of the output of the fancy example scripts