summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild1
-rwxr-xr-xbusybox.pkg/postinst1
-rwxr-xr-xbusybox.pkg/prerm1
3 files changed, 3 insertions, 0 deletions
diff --git a/build b/build
index 0f0b3c8..f623d61 100755
--- a/build
+++ b/build
@@ -31,6 +31,7 @@ install:
oh-fixperms
oh-strip
chmod u+s dest/bin/busybox
+ mv dest/usr/bin/awk dest/usr/bin/awk.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
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index 526a66c..3c1a964 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -1,6 +1,7 @@
#!/bin/sh
if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/awk awk /usr/bin/awk.busybox 10
update-alternatives --install /usr/bin/ar ar /usr/bin/ar.busybox 10
update-alternatives --install /usr/bin/strings strings \
/usr/bin/strings.busybox 10
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index 12937d3..6cfc7e0 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -1,6 +1,7 @@
#!/bin/sh
if [ "${1}" = remove ]; then
+ update-alternatives --remove awk /usr/bin/awk.busybox
update-alternatives --remove ar /usr/bin/ar.busybox
update-alternatives --remove strings /usr/bin/strings.busybox
update-alternatives --remove clear /usr/bin/clear.busybox