summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}