Check the installed SolidGroundUX MOTD scripts

SolidGroundUX DocumentationSolidGroundUX
NL

fn: motd_test

Purpose

Locate and run executable SolidGroundUX MOTD fragments to check their output.

Behavior

  • Search the framework's etc/update-motd.d directory for 95-solidgroundux*.
  • Skip non-executable fragments with a warning and execute the others.
  • Report a missing directory, missing files, or failed fragments.

Returns

  • 0 if no executed fragment fails (including when no matching files exist).
  • 1 when the MOTD directory is missing, no matching file is executable, or a fragment fails.

Usage

  motd_test