diff options
author | P. 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) |
commit | b2ab30ef7209c82f85bcf911db0429feaecc1bd7 (patch) | |
tree | dad96a583c62c57d8d40a694c2f0bdd18097dd5f | |
parent | aac7b03ebbefea7049ea3003ba62e6e2ac0ef9b9 (diff) |
Manage clear and reset with update-alternatives.
These are also provided by ncurses-bin.
-rwxr-xr-x | build | 2 | ||||
-rwxr-xr-x | busybox.pkg/postinst | 4 | ||||
-rwxr-xr-x | busybox.pkg/prerm | 2 |
3 files changed, 8 insertions, 0 deletions
@@ -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 |