summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-21 16:18:41 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 12:04:44 +0100
commite4c35790d6dc23a0933f188f52fa4434784e1d98 (patch)
tree9e801281c856e2413a8b1a7a1a6693ff407094fa /meta/recipes-extended/shadow
parent9a686b3481cc1080868e66bbed4d8beb53f1cafa (diff)
downloadpoky-e4c35790d6dc23a0933f188f52fa4434784e1d98.tar.gz
shadow-utils-native: remove unnecessary alternatives
(From OE-Core rev: b1ea93143a473f006b31ab22f88baf41661971a7) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb21
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
index 61fccbac26..fece9c6f50 100644
--- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
@@ -45,25 +45,4 @@ do_install_append() {
45 # Now we don't have a mail system. Disable mail creation for now. 45 # Now we don't have a mail system. Disable mail creation for now.
46 sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd 46 sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
47 sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd 47 sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
48
49 install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir}
50 for i in passwd chfn newgrp chsh ; do
51 mv ${D}${bindir}/$i ${D}${bindir}/$i.${PN}
52 done
53
54 mv ${D}${sbindir}/chpasswd ${D}${sbindir}/chpasswd.${PN}
55}
56
57pkg_postinst_${PN} () {
58 update-alternatives --install ${bindir}/passwd passwd passwd.${PN} 200
59 update-alternatives --install ${sbindir}/chpasswd chpasswd chpasswd.${PN} 200
60 update-alternatives --install ${bindir}/chfn chfn chfn.${PN} 200
61 update-alternatives --install ${bindir}/newgrp newgrp newgrp.${PN} 200
62 update-alternatives --install ${bindir}/chsh chsh chsh.${PN} 200
63}
64
65pkg_prerm_${PN} () {
66 for i in passwd chpasswd chfn newgrp chsh ; do
67 update-alternatives --remove $i $i.${PN}
68 done
69} 48}