summaryrefslogtreecommitdiffstats
path: root/busybox.pkg
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-08-04 11:34:46 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-08-04 11:37:52 (EDT)
commitb2ab30ef7209c82f85bcf911db0429feaecc1bd7 (patch)
treedad96a583c62c57d8d40a694c2f0bdd18097dd5f /busybox.pkg
parentaac7b03ebbefea7049ea3003ba62e6e2ac0ef9b9 (diff)
Manage clear and reset with update-alternatives.
These are also provided by ncurses-bin.
Diffstat (limited to 'busybox.pkg')
-rwxr-xr-xbusybox.pkg/postinst4
-rwxr-xr-xbusybox.pkg/prerm2
2 files changed, 6 insertions, 0 deletions
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