diff options
-rwxr-xr-x | build | 4 | ||||
-rw-r--r-- | changelog | 1 | ||||
-rw-r--r-- | opkg-lede.pkg/postinst | 5 |
3 files changed, 7 insertions, 3 deletions
@@ -23,9 +23,9 @@ install: build oh-autoinstall mv dest/usr/bin/opkg-cl dest/usr/bin/opkg-lede @# opkg-lede's CMake build system doesn't install these... - cp ../opkg-key dest/usr/bin/opkg-key + cp ../opkg-key dest/usr/bin/opkg-key-lede sed 's|@opkglibdir@|/var/lib|g' src/utils/update-alternatives.in \ - >dest/usr/bin/update-alternatives + >dest/usr/bin/update-alternatives-lede oh-fixperms oh-strip oh-installfiles @@ -4,6 +4,7 @@ opkg-lede (0+git20190131.d4ba162-2) trunk "/etc/opkg/opkg.conf". * Set lock file path to "/var/lib/opkg/lock", as it has always been with the original opkg. + * Manage opkg-key and update-alternatives with update-alternatives. -- Patrick McDermott <patrick.mcdermott@libiquity.com> Thu, 04 Apr 2019 16:52:10 -0400 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 |