summaryrefslogtreecommitdiffstats
path: root/opkg-lede.pkg/postinst
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 17:36:14 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-04 17:36:14 (EDT)
commite30cba792afeed6a1b42fb62393781332b8a1544 (patch)
tree8c84e23ade7b6902fb69097e95fefd2fbc0b9f55 /opkg-lede.pkg/postinst
parent5efe3be539e3305db38f543a693b0028c4ffce58 (diff)
build, opkg-lede: Manage opkg-key and u-a with u-a
How meta.
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