summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild2
-rwxr-xr-xbusybox.pkg/postinst4
-rwxr-xr-xbusybox.pkg/prerm2
3 files changed, 8 insertions, 0 deletions
diff --git a/build b/build
index 4a3fae5..c2caae6 100755
--- a/build
+++ b/build
@@ -15,4 +15,6 @@ install:
chmod u+s dest/bin/busybox
mv dest/usr/bin/ar dest/usr/bin/ar.busybox
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
oh-installfiles
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index c1ac929..526a66c 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -4,4 +4,8 @@ if [ "x${1}" = 'xconfigure' ]; then
update-alternatives --install /usr/bin/ar ar /usr/bin/ar.busybox 10
update-alternatives --install /usr/bin/strings strings \
/usr/bin/strings.busybox 10
+ update-alternatives --install /usr/bin/clear clear \
+ /usr/bin/clear.busybox 10
+ update-alternatives --install /usr/bin/reset reset \
+ /usr/bin/reset.busybox 10
fi
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index f1511f8..12937d3 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -3,4 +3,6 @@
if [ "${1}" = remove ]; then
update-alternatives --remove ar /usr/bin/ar.busybox
update-alternatives --remove strings /usr/bin/strings.busybox
+ update-alternatives --remove clear /usr/bin/clear.busybox
+ update-alternatives --remove reset /usr/bin/reset.busybox
fi