aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-pam-conf2
-rw-r--r--system-login.in6
2 files changed, 6 insertions, 2 deletions
diff --git a/linux-pam-conf b/linux-pam-conf
index ab2c5a0..cd5d1ef 100644
--- a/linux-pam-conf
+++ b/linux-pam-conf
@@ -3,6 +3,8 @@
#define HAVE_TALLY 1
#define HAVE_ACCESS 1
#define HAVE_SHELLS 1
+#define HAVE_MOTD 1
+#define HAVE_MAIL 1
#define UNIX_EXTENDED_ENCRYPTION md5 shadow
diff --git a/system-login.in b/system-login.in
index 7907d3a..132cc03 100644
--- a/system-login.in
+++ b/system-login.in
@@ -40,8 +40,10 @@ session include system-auth
#if HAVE_SELINUX
session required pam_selinux.so multiple open
#endif
-// These are optional, so there is no reason to actually put them under
-// additional conditionals to get them ignored on FreeBSD.
+#if HAVE_MOTD
session optional pam_motd.so motd=/etc/motd
+#endif
+#if HAVE_MAIL
session optional pam_mail.so
+#endif