diff options
author | Ludwig Nussel | 2018-09-07 09:47:25 +0200 |
---|---|---|
committer | Ludwig Nussel | 2018-09-07 09:47:25 +0200 |
commit | 4866b7178614e7db0de15212e5846e1a5656211a (patch) | |
tree | 930dcb94a9f32344af66f80fd09a981d3a3fc158 | |
parent | script: be sensitive to another SIGCHLD ssi_codes (diff) | |
download | kernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.tar.gz kernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.tar.xz kernel-qcow2-util-linux-4866b7178614e7db0de15212e5846e1a5656211a.zip |
Add built in fallbacks for motd file
Use several locations for built in default for motd to allow for
e.g. run time generated motd without having to modify config files.
login.c already splits by colon.
/usr/share/misc/motd
- chould be shipped by distributions
/run/motd
- potentially run time created file with dynamic information
/etc/motd
- for the admin fill with local information
Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
-rw-r--r-- | include/pathnames.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pathnames.h b/include/pathnames.h index abf0cdee9..3d5052e6f 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -43,7 +43,7 @@ #ifndef _PATH_MAILDIR # define _PATH_MAILDIR "/var/spool/mail" #endif -#define _PATH_MOTDFILE "/etc/motd" +#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd" #ifndef _PATH_NOLOGIN # define _PATH_NOLOGIN "/etc/nologin" #endif |