summaryrefslogtreecommitdiffstats
path: root/opkg-lede.pkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'opkg-lede.pkg/postinst')
-rw-r--r--opkg-lede.pkg/postinst5
1 files changed, 4 insertions, 1 deletions
diff --git a/opkg-lede.pkg/postinst b/opkg-lede.pkg/postinst
index 187a8cc..f1ee124 100644
--- a/opkg-lede.pkg/postinst
+++ b/opkg-lede.pkg/postinst
@@ -1,5 +1,8 @@
#!/bin/sh
if [ x"${1}" = x'configure' ]; then
- update-alternatives --install /usr/bin/opkg opkg /usr/bin/opkg-lede 30
+ for f in opkg opkg-key update-alternatives; do
+ update-alternatives --install "/usr/bin/${f}" "${f}" \
+ "/usr/bin/${f}-lede" 30
+ done
fi