aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-03-22 01:06:55 +0000
committerMarcin Juszkiewicz <marcin@buglabs.net>2010-03-23 10:57:42 +0100
commitcf30863b6dbdb7a8bb3920fc97f169f217e93682 (patch)
tree4ca6c362e381580ba5962702f95b326d9611aecd
parent376fff5adb863ad94c24677ea20da1c6af94d418 (diff)
downloadopenembedded-cf30863b6dbdb7a8bb3920fc97f169f217e93682.zip
openembedded-cf30863b6dbdb7a8bb3920fc97f169f217e93682.tar.gz
openembedded-cf30863b6dbdb7a8bb3920fc97f169f217e93682.tar.bz2
shadow: run pwconv and grpconv in postinst
* this converts oldstyle formats to the proper one Acked-by: <koen@openembedded.org> Acked-by: Philip Balister <philip@balister.org>
-rw-r--r--recipes/shadow/shadow.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc
index 9da5845..5e3d2f2 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 = "r9"
+INC_PR = "r10"
# Additional Policy files for PAM
PAM_SRC_URI = " \
@@ -89,6 +89,11 @@ do_install_append() {
pkg_postinst_${PN} () {
update-alternatives --install ${bindir}/passwd passwd passwd.${PN} 100
update-alternatives --install ${sbindir}/chpasswd chpasswd chpasswd.${PN} 100
+ if [ "x$D" != "x" ]; then
+ exit 1
+ fi
+ pwconv
+ grpconv
}
pkg_prerm_${PN} () {