aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@buglabs.net>2010-07-06 10:17:16 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2010-07-20 19:21:45 +0200
commit7498f36dba0a1edb92f44a441bb24d2373e629a9 (patch)
treedb7cc3cd62daf569f87ea0a714c5d7ce5ba112cb
parentcbbc92a0e32e90a91db1dbf79eb07df9692e795f (diff)
downloadopenembedded-7498f36dba0a1edb92f44a441bb24d2373e629a9.tar.gz
openembedded-7498f36dba0a1edb92f44a441bb24d2373e629a9.tar.bz2
openembedded-7498f36dba0a1edb92f44a441bb24d2373e629a9.zip
shadow: Disable email checking completely
This allows faster login due to not checking for new emails. Adjust PR to 14 as stable is behind .dev here. Signed-off-by: Stefan Schmidt <stefan@buglabs.net> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes/shadow/shadow.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc
index 30bd92f394..55487dff6c 100644
--- a/recipes/shadow/shadow.inc
+++ b/recipes/shadow/shadow.inc
@@ -11,7 +11,7 @@ LICENSE = "BSD"
SECTION = "base"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
-INC_PR = "r13"
+INC_PR = "r14"
# Additional Policy files for PAM
PAM_SRC_URI = " \
@@ -79,6 +79,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}