This bit here in libpam-modules 
'debian/patches-applied/update-motd' builds the 
motd:

+    /* Run the update-motd dynamic motd scripts, outputting
to /var/run/motd.
+       If /etc/motd -> /var/run/motd, the displayed MOTD will be
dynamic.
+       Otherwise, the admin can force a static MOTD by breaking that
symlink
+       and publishing into an /etc/motd text file. */
+    if ((stat("/etc/update-motd.d", &st) == 0) && S_ISDIR(st.st_mode))
{
+       if (!system("run-parts --lsbsysinit /etc/update-motd.d
> /var/run/motd.new"))
+           rename("/var/run/motd.new", "/var/run/motd");

libpam-modules needs to update the doc ('man pam_motd') to reflect
the new handling of the motd.






-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to