--- /dev/null
+diff --git a/loginutils/passwd.c b/loginutils/passwd.c
+index 1cfafae..3231b23 100644
+--- a/loginutils/passwd.c
++++ b/loginutils/passwd.c
+@@ -94,7 +94,7 @@ int passwd_main(int argc UNUSED_PARAM, char **argv)
+ };
+ unsigned opt;
+ int rc;
+- const char *opt_a = "d"; /* des */
++ const char *opt_a = "m"; /* des */
+ const char *filename;
+ char *myname;
+ char *name;
CONFIG_FEATURE_SHADOWPASSWDS=y
# CONFIG_USE_BB_PWD_GRP is not set
# CONFIG_USE_BB_SHADOW is not set
-# CONFIG_USE_BB_CRYPT is not set
+CONFIG_USE_BB_CRYPT=y
# CONFIG_USE_BB_CRYPT_SHA is not set
CONFIG_ADDUSER=y
CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y
-PR .= "-vuplus4"
+PR .= "-vuplus5"
SRC_URI += " \
file://0001-ifupdown-support-post-up-pre-down-hooks.patch \
file://0002-Create-and-use-our-own-copy-of-linux-ext2_fs.h.patch \
file://0003-Drop-include-bb_linux_ext2_fs.h-use-existing-e2fspro.patch \
file://mount_single_uuid.patch \
+ file://change-passwd-default-algorithm.patch \
file://inetd \
file://inetd.conf \
"
--- /dev/null
+PR .= "vuplus0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
+
+pkg_postinst_${PN} () {
+ for i in chpasswd chfn newgrp chsh groups vipw vigr ; do
+ update-alternatives --install ${sbindir}/$i $i $i.${PN} 200
+ done
+
+ if [ "x$D" != "x" ]; then
+ rootarg="--root=$D"
+ else
+ rootarg=""
+ fi
+
+ pwconv $rootarg
+ grpconv $rootarg
+}
+
+pkg_prerm_${PN} () {
+ for i in chpasswd chfn newgrp chsh groups vipw vigr ; do
+ update-alternatives --remove $i $i.${PN}
+ done
+}
+