aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shadow
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@buglabs.net>2010-06-26 18:11:57 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2010-06-28 18:10:11 +0200
commit6c332eb3f1816f495587be528e3b621df74db18b (patch)
treed4dd96609f62fd36eaf03ab85c8ebc5cd3f721eb /recipes/shadow
parentb409fdad280a5e90bab76c27e43cf92a9b8e78bd (diff)
downloadopenembedded-6c332eb3f1816f495587be528e3b621df74db18b.tar.gz
shadow: Disable email checking completely
This allows faster login due to not checking for new emails.
Diffstat (limited to 'recipes/shadow')
-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 460930b22a..d2ac65da71 100644
--- a/recipes/shadow/shadow.inc
+++ b/recipes/shadow/shadow.inc
@@ -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}