shadow: Disable email checking completely
authorStefan Schmidt <stefan@buglabs.net>
Sat, 26 Jun 2010 16:11:57 +0000 (18:11 +0200)
committerStefan Schmidt <stefan@datenfreihafen.org>
Mon, 28 Jun 2010 16:10:11 +0000 (18:10 +0200)
This allows faster login due to not checking for new emails.

recipes/shadow/shadow.inc

index 460930b..d2ac65d 100644 (file)
@@ -13,7 +13,7 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 
 PACKAGE_ARCH_${PN} = "${MACHINE_ARCH}"
 
-INC_PR = "r14"
+INC_PR = "r15"
 
 # Additional Policy files for PAM
 PAM_SRC_URI = " \
@@ -81,6 +81,9 @@ do_install_append() {
   sed -i 's/MAIL_DIR/#MAIL_DIR/g' ${D}${sysconfdir}/login.defs
   sed -i 's/#MAIL_FILE/MAIL_FILE/g' ${D}${sysconfdir}/login.defs
 
+  # disable checking emails at all
+  sed -i 's/MAIL_CHECK_ENAB/#MAIL_CHECK_ENAB/g' ${D}${sysconfdir}/login.defs
+
   install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir} 
   for i in passwd chfn newgrp chsh ; do
     mv ${D}${bindir}/$i ${D}${bindir}/$i.${PN}