summaryrefslogtreecommitdiffstats
path: root/busybox.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.pkg')
-rwxr-xr-xbusybox.pkg/postinst5
-rwxr-xr-xbusybox.pkg/prerm5
2 files changed, 10 insertions, 0 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
new file mode 100755
index 0000000..829a73d
--- /dev/null
+++ b/busybox.pkg/postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/ar ar /usr/bin/ar.busybox 10
+fi
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
new file mode 100755
index 0000000..7f466ae
--- /dev/null
+++ b/busybox.pkg/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "${1}" = remove ]; then
+ update-alternatives --remove ar /usr/bin/ar.busybox
+fi