summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild1
-rwxr-xr-xbusybox.pkg/postinst2
-rwxr-xr-xbusybox.pkg/prerm1
3 files changed, 4 insertions, 0 deletions
diff --git a/build b/build
index f623d61..c7178fc 100755
--- a/build
+++ b/build
@@ -36,6 +36,7 @@ install:
mv dest/usr/bin/strings dest/usr/bin/strings.busybox
mv dest/usr/bin/clear dest/usr/bin/clear.busybox
mv dest/usr/bin/reset dest/usr/bin/reset.busybox
+ mv dest/usr/bin/mkpasswd dest/usr/bin/mkpasswd.busybox
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
install -d -m 0755 dest/etc; \
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index 3c1a964..29c3d31 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -9,4 +9,6 @@ if [ "x${1}" = 'xconfigure' ]; then
/usr/bin/clear.busybox 10
update-alternatives --install /usr/bin/reset reset \
/usr/bin/reset.busybox 10
+ update-alternatives --install /usr/bin/mkpasswd mkpasswd \
+ /usr/bin/mkpasswd.busybox 10
fi
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index 6cfc7e0..63b465e 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -6,4 +6,5 @@ if [ "${1}" = remove ]; then
update-alternatives --remove strings /usr/bin/strings.busybox
update-alternatives --remove clear /usr/bin/clear.busybox
update-alternatives --remove reset /usr/bin/reset.busybox
+ update-alternatives --remove mkpasswd /usr/bin/mkpasswd.busybox
fi