summaryrefslogtreecommitdiffstats
path: root/opkg-common.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'opkg-common.pkg')
-rw-r--r--opkg-common.pkg/files4
-rw-r--r--opkg-common.pkg/postinst8
2 files changed, 10 insertions, 2 deletions
diff --git a/opkg-common.pkg/files b/opkg-common.pkg/files
index 0adb8fd..ba783fc 100644
--- a/opkg-common.pkg/files
+++ b/opkg-common.pkg/files
@@ -1,4 +1,4 @@
/usr/bin/opkg-check-config
-/usr/bin/opkg-key
-/usr/bin/update-alternatives
+/usr/bin/opkg-key-orig
+/usr/bin/update-alternatives-orig
/usr/share/opkg
diff --git a/opkg-common.pkg/postinst b/opkg-common.pkg/postinst
new file mode 100644
index 0000000..5f90662
--- /dev/null
+++ b/opkg-common.pkg/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ x"${1}" = x'configure' ]; then
+ for f in opkg-key update-alternatives; do
+ update-alternatives --install "/usr/bin/${f}" "${f}" \
+ "/usr/bin/${f}-orig" 20
+ done
+fi